Skip to content

Commit 29be38f

Browse files
committed
Let gh use github.token in "Collect expected failures"
This is to fix the error: gh: To use GitHub CLI in a GitHub Actions workflow, set the GH_TOKEN environment variable. Example: env: GH_TOKEN: ${{ github.token }} InvalidOperation: D:\a\_temp\ba9d92b7-3a94-4f7c-b541-d19003f40e19.ps1:9 Line | 9 | $expected_failures = $match_info.Matches.Groups[1].Value -split "`n" … | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | Cannot index into a null array. Error: Process completed with exit code 1.
1 parent cf9547e commit 29be38f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,8 @@ jobs:
110110
Write-Output $actual_failures
111111
Set-Content -Path 'actual-failures.txt' -Value $actual_failures
112112
- name: Collect expected failures
113+
env:
114+
GH_TOKEN: ${{ github.token }}
113115
run: |
114116
$issue = 1358 # https://github.com/GitoxideLabs/gitoxide/issues/1358
115117

0 commit comments

Comments
 (0)