Skip to content

Commit

Permalink
ci(goreleaser): use concurrency to only execute 1 job at a time (gn…
Browse files Browse the repository at this point in the history
…olang#3557)

This will make it so that on master, there is only 1 job of
releaser-master executing at a time. There may be another pending one
(if, say, we merge two PRs back to back), and it will be put as
`pending`. It's cancelled if we merge a third PR while the second one is
still `pending`.

For more information:
https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#concurrency
  • Loading branch information
thehowl authored and stefann-01 committed Jan 24, 2025
1 parent 3b02f8e commit 3127719
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/releaser-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- master
workflow_dispatch:

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}

permissions:
contents: write # needed to write releases
id-token: write # needed for keyless signing
Expand Down

0 comments on commit 3127719

Please sign in to comment.