Skip to content

Commit

Permalink
chore: cancel previous GHA from the same PR (#745)
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan authored Feb 5, 2024
1 parent ddb70f8 commit d07ed55
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

concurrency:
# Cancel previous actions from the same PR: https://stackoverflow.com/a/72408109
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
# matrix-prep-* steps dynamically generate a bit of JSON depending on whether our action has
# access to repository secrets. When running on a pull_request from a fork, the author is
Expand Down

0 comments on commit d07ed55

Please sign in to comment.