Skip to content

Commit

Permalink
build: Cancel in-progress job to free up concurrent groups (#5899)
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhiPrasad committed Oct 6, 2022
1 parent b4edb16 commit a1d5398
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build.yml
Expand Up @@ -11,6 +11,12 @@ on:
description: If the commit you want to test isn't the head of a branch, provide its SHA here
required: false

# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
# We pin the exact version to enforce reproducable builds with node + npm.
DEFAULT_NODE_VERSION: '16.15.1'
Expand Down

0 comments on commit a1d5398

Please sign in to comment.