Skip to content

Commit 210f7b5

Browse files
committed
fix gh not working
1 parent 063fc23 commit 210f7b5

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/example.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ jobs:
1414
uses: actions/checkout@v4
1515

1616
- name: Download CLI
17+
env:
18+
# To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable.
19+
GH_TOKEN: ${{ github.token }}
1720
run: |
1821
gh release download --repo dependabot/cli -p "*linux-amd64.tar.gz"
1922
tar xzvf *.tar.gz >/dev/null 2>&1
@@ -48,4 +51,7 @@ jobs:
4851
name: dependabot-result
4952

5053
- name: Create PRs
54+
env:
55+
# To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable.
56+
GH_TOKEN: ${{ github.token }}
5157
run: bash create.sh result.jsonl

0 commit comments

Comments
 (0)