Skip to content

Commit

Permalink
Cancel previous runs when creating draft release
Browse files Browse the repository at this point in the history
  • Loading branch information
igoravl committed Jul 24, 2024
1 parent ca2d168 commit de4bd2b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ jobs:
# Upload assets
@('msi/TfsCmdlets*.msi', 'nuget/TfsCmdlets*.nupkg', 'portable/TfsCmdlets*.zip', 'docs/TfsCmdlets*.zip') `
| ForEach-Object { New-GitHubReleaseAsset -Release $release.Id -Path $_ }
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}

outputs:
BUILD_NAME: ${{ needs.Build.outputs.BUILD_NAME }}
RELEASE_NOTES: ${{ steps.extract_release_notes.outputs.RELEASE_NOTES }}
Expand All @@ -137,10 +141,6 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BUILD_NAME: ${{ needs.Staging.outputs.BUILD_NAME }}
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
with:
access_token: ${{ github.token }}
- name: Promote release
id: promote_release
shell: pwsh
Expand Down

0 comments on commit de4bd2b

Please sign in to comment.