From d16aff04d14069022908d6a0fd443bfde6d5aba7 Mon Sep 17 00:00:00 2001 From: Igor Abade Date: Wed, 24 Jul 2024 13:00:09 -0300 Subject: [PATCH] Add concurrency control support --- .github/workflows/main.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c9ab4fc2..7b078f40 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -9,6 +9,10 @@ on: pull_request: branches: [ main ] +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + jobs: Build: @@ -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/cancel-workflow-action@0.12.1 - with: - access_token: ${{ github.token }} outputs: BUILD_NAME: ${{ needs.Build.outputs.BUILD_NAME }}