Skip to content

Commit

Permalink
Add concurrency control support
Browse files Browse the repository at this point in the history
  • Loading branch information
igoravl committed Jul 24, 2024
1 parent 00a93e0 commit d16aff0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,10 @@ on:
pull_request:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:

Build:
Expand Down Expand Up @@ -121,10 +125,6 @@ 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/[email protected]
with:
access_token: ${{ github.token }}
outputs:
BUILD_NAME: ${{ needs.Build.outputs.BUILD_NAME }}
Expand Down

0 comments on commit d16aff0

Please sign in to comment.