Skip to content

Commit

Permalink
chore: cancel in-progress runs only if triggered by 'pull_request'
Browse files Browse the repository at this point in the history
  • Loading branch information
fullkomnun committed Aug 28, 2023
1 parent 33c2e5d commit 4c79532
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/on-pull-request-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Cancel in-progress runs only if triggered by 'pull_request'
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true

env:
DOCKER_BUILDKIT: 1 # enable docker buildkit
# Whitelisting is disabled during testing for backwards compatibility with these tests. It must not be disabled in production.
Expand Down

0 comments on commit 4c79532

Please sign in to comment.