Skip to content

Commit ba6a31d

Browse files
committed
Corrected github token environment variable to conform to secrets as stored on devops environment
1 parent 1e828cd commit ba6a31d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

azure-pipelines/powershell-docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,10 @@ jobs:
6666
- task: PowerShell@2
6767
displayName: Pushing to github
6868
env:
69-
GITHUB_TOKEN: ${env:GITHUB_TOKEN}
69+
GITHUB_TOKEN: $(GITHUB_TOKEN)
7070
inputs:
7171
targetType: inline
72+
pwsh: true
7273
script: |
7374
git config --global user.email "[email protected]"
7475
git config --global user.name "Timothy Wamalwa"
@@ -77,6 +78,6 @@ jobs:
7778
$proposedBranch = "weekly_update_help_files_"+$date
7879
git add .
7980
git commit -m "Updating help files "+$date
80-
git push --set-upstream "https://${env:GITHUB_TOKEN}@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $proposedBranch
81+
git push --set-upstream "https://$(GITHUB_TOKEN)@github.com/MicrosoftDocs/microsoftgraph-docs-powershell.git" $proposedBranch
8182
git status
8283

0 commit comments

Comments
 (0)