Skip to content

Commit

Permalink
Skip updating GitHub status when no token (#2479)
Browse files Browse the repository at this point in the history
  • Loading branch information
mattleibow authored Jun 7, 2023
1 parent 1a18208 commit f93465d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/azure-templates-github-status.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ parameters:

steps:
- pwsh: |
if ('$(Github.Token.Status)' -eq '') {
Write-Host "GitHub status token was empty. Skipping status updates."
return
}
$state = 'pending'
if ('${{ parameters.state }}') {
$state = '${{ parameters.state }}'
Expand Down

0 comments on commit f93465d

Please sign in to comment.