Skip to content

Commit aabeeb2

Browse files
authored
only run latest workflow for pull requests (#480)
- Add concurrency group configuration to CI workflow - Cancel in-progress jobs for pull requests only - Keep all workflow runs for main branch pushes and tags - Optimize CI pipeline resource usage
1 parent c7c3f5c commit aabeeb2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
- main
1616
- rls-*
1717

18+
concurrency:
19+
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.event.pull_request.number || github.sha }}
20+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
21+
1822
permissions:
1923
contents: write
2024

0 commit comments

Comments
 (0)