Skip to content

Commit 6fc05ac

Browse files
authored
Update yolo.yml
1 parent e200afe commit 6fc05ac

File tree

1 file changed

+14
-41
lines changed

1 file changed

+14
-41
lines changed

.github/workflows/yolo.yml

Lines changed: 14 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,52 +1,25 @@
1-
name: Workflow debug
1+
name: Test
22
on:
33
workflow_dispatch:
44
jobs:
55
debug:
6-
name: Debug workflow contexts and environments
76
runs-on: ubuntu-latest
7+
environment: andy-only
88
steps:
9-
- name: Shell environment
10-
run: |
11-
printenv | sort
9+
- uses: actions/checkout@v4
10+
with:
11+
token: ${{ secrets.GH_TOKEN }}
12+
repository: cli/cli
1213

13-
- name: Dump GitHub context
14-
env:
15-
GITHUB_CONTEXT: ${{ toJson(github) }}
16-
run: echo "$GITHUB_CONTEXT"
17-
18-
- name: Dump runner context
14+
- run: |
15+
gh pr checkout 10574
1916
env:
20-
CONTEXT: ${{ toJson(runner) }}
21-
run: echo "$CONTEXT"
22-
23-
- name: Actions contexts
24-
uses: actions/github-script@v6
25-
with:
26-
script: |
27-
console.log(context)
17+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
2818
29-
- name: List workspace
30-
run: |
31-
stat --help
32-
stat $GITHUB_WORKSPACE
33-
tree $GITHUB_WORKSPACE
34-
35-
- name: List workspace (context)
36-
run: |
37-
tree ${{ github.workspace }}
19+
- run: |
20+
make
3821
39-
cli-9808:
40-
name: cli/cli#9808 testing
41-
runs-on: ubuntu-latest
42-
steps:
43-
- name: Assert secret value matches original
22+
- run: bin/gh repo sync ${{github.repository}}
4423
env:
45-
TESTSCRIPTS: ${{ secrets.TESTSCRIPTS }}
46-
run: |
47-
if [[ "$TESTSCRIPTS" == "original" ]]; then
48-
echo "GitHub Actions secret value matches"
49-
else
50-
echo "GitHub Actions secret value does not match"
51-
exit 1
52-
fi
24+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
25+
GH_DEBUG: api

0 commit comments

Comments
 (0)