Refine concurrency configuration for GitHub actions

This commit is contained in:
Joona Hoikkala 2026-02-04 00:42:14 +02:00
parent c6826aad31
commit b7d9f44765
3 changed files with 6 additions and 6 deletions

View File

@ -7,8 +7,8 @@ on:
branches: [ master ] branches: [ master ]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs: jobs:
e2e-tests: e2e-tests:

View File

@ -9,8 +9,8 @@ on:
- cron: '15 */12 * * *' - cron: '15 */12 * * *'
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs: jobs:
test: test:

View File

@ -6,8 +6,8 @@ on:
branches: [ master ] branches: [ master ]
concurrency: concurrency:
group: ${{ github.workflow }}-${{ github.ref }} group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true cancel-in-progress: ${{ github.ref_name != 'master' }}
jobs: jobs:
golangci: golangci: