Skip to content

Commit

Permalink
Merge pull request #1889 from AllenInstitute/feature/1889-kill-redund…
Browse files Browse the repository at this point in the history
…ant-gh-action-runs-backport

.github/workflows: Cancel redundant workflow runs
  • Loading branch information
t-b authored Sep 12, 2023
2 parents 1bf6394 + 04fd052 commit e9255ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ on:
defaults:
run:
shell: bash
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:

BuildInstaller:
Expand Down Expand Up @@ -223,7 +226,7 @@ jobs:
FTPUpload:
name: 📦 FTP Upload Artifacts
runs-on: [ self-hosted, Linux, Docker ]
if: always() && !inputs.is_called_workflow
if: ${{ !cancelled() && !inputs.is_called_workflow}}
needs:
# All jobs that create new artifacts
- BuildInstaller
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ jobs:
FTPUpload:
name: 📦 FTP Upload Artifacts
runs-on: [ self-hosted, Linux, Docker ]
if: always()
if: ${{ !cancelled() }}
needs:
# All jobs that create new artifacts
- CallPR
Expand Down

0 comments on commit e9255ee

Please sign in to comment.