fix(ci): fix concurrency of ci runs if triggered by pull_request_target

Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
Tilman Vatteroth 2022-12-01 23:23:02 +01:00
parent 1928cd8639
commit 5016eb38ca
2 changed files with 3 additions and 2 deletions

View file

@ -18,13 +18,14 @@ permissions:
env:
NODE_VERSION: 18
HEAD_COMMIT_HASH: "${{ !!github.event.pull_request && github.event.pull_request.head.sha || github.sha }}"
HEAD_REF: "${{ !!github.event.pull_request && github.event.pull_request.head.label || github.ref }}"
defaults:
run:
working-directory: frontend
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: ${{ github.workflow }}-${{ env.HEAD_REF }}-${{ github.event_name }}
cancel-in-progress: true
jobs:

View file

@ -35,7 +35,7 @@ defaults:
working-directory: frontend
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }}
group: ${{ github.workflow }}-${{ github.event.pull_request.head.label }}-${{ github.event_name }}
cancel-in-progress: true
jobs: