Skip to content

Commit

Permalink
ci(github): tweak parallelism in build-test-distribute (#9760)
Browse files Browse the repository at this point in the history
What was happening:

1. New push on PRs cancelled previous runs
2. Commits on branches would run in parallel

What happens now:

1. Unchanged from before
2. Commits on branches run CI one after the other

This should help streamline CI runs favouring the oldest merge first

Signed-off-by: Charly Molter <[email protected]>
  • Loading branch information
lahabana authored Mar 29, 2024
1 parent ca97007 commit 55436db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-test-distribute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
pull_request:
branches: ["master", "release-*"]
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
group: ${{github.workflow}}-${{ github.ref_name }} # group all runs by branch or tag
cancel-in-progress: ${{ github.event_name == 'pull_request' }} # only cancel previous runs on PRs, we want each commit to build on branches
permissions:
contents: write # To upload assets
id-token: write # For using token to sign images
Expand Down

0 comments on commit 55436db

Please sign in to comment.