File tree Expand file tree Collapse file tree 1 file changed +14
-41
lines changed Expand file tree Collapse file tree 1 file changed +14
-41
lines changed Original file line number Diff line number Diff line change 1- name : Workflow debug
1+ name : Test
22on :
33 workflow_dispatch :
44jobs :
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
You can’t perform that action at this time.
0 commit comments