Skip to content

Commit

Permalink
Adjust CI job for concurency
Browse files Browse the repository at this point in the history
This change prevents redundant Actions running on a PR.

Given a situation where a PR has been created and gets updates pushed.
Each update will trigger a new CI workflow to run, however only the most recent one is actually valid for the current state.
As such this change will prevent the redundant jobs from running, cancelling them without error, and will allow the correct workflow to run sooner.
  • Loading branch information
mallardduck committed Sep 5, 2024
1 parent fa6f445 commit b57824c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,10 @@ name: CI
on:
pull_request:

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

permissions:
contents: read

Expand Down

0 comments on commit b57824c

Please sign in to comment.