Skip to content

Commit 3ac6453

Browse files
authored
Update workflow to fix repo and GitHub CLI authentication (#463)
Switched default repo and workflow trigger from arcus.testing to arcus.scripting. Improved GitHub CLI authentication by using the GITHUB_TOKEN environment variable in PowerShell and explicitly setting it from parameters.
1 parent 5cb516e commit 3ac6453

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

build/templates/trigger-bump-docs-version.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@ steps:
55
- script: sudo apt install gh
66
displayName: 'Install GitHub CLI'
77
- powershell: |
8-
gh auth login --with-token $(GITHUB_TOKEN)
8+
gh auth login --with-token $env:GITHUB_TOKEN
9+
gh repo set-default arcus-azure/arcus.scripting
910
gh repo view
10-
11+
1112
if ($env:VERSION -notmatch '-' -and $env:VERSION -match '^v[0-9]+\.[0-9]+\.0$') {
1213
gh workflow run bump-docs-version.yml `
13-
--repo arcus-azure/arcus.testing `
14+
--repo arcus-azure/arcus.scripting `
1415
--ref main `
1516
--field version=$env:VERSION
1617
}
1718
displayName: 'Trigger new feature docs version PR'
1819
env:
1920
VERSION: v$(Build.BuildNumber)
21+
GITHUB_TOKEN: ${{ parameters.gitHubToken }}

0 commit comments

Comments
 (0)