Skip to content

Commit

Permalink
Switch to github.head_ref for concurrency key
Browse files Browse the repository at this point in the history
It looks like `github.ref` points to the target branch when triggered by
`pull_request_target`, while `github.head_ref` is always the source
branch.
  • Loading branch information
yut23 committed May 10, 2024
1 parent a227d77 commit 1545d43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/check-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:
types: [opened, synchronize, labeled, unlabeled]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
group: ${{ github.workflow }}-${{ github.head_ref }}
cancel-in-progress: true

jobs:
Expand Down

0 comments on commit 1545d43

Please sign in to comment.