mirror of
https://github.com/asterisk/asterisk.git
synced 2025-09-03 11:25:35 +00:00
GitHub strikes again. Apparently the github.ref context variable only contains the PR number if the workflow is triggered by "pull_request" so since we just changed the trigger to "pull_request_target" the variable no longer contains the PR number and is therefore not unique and can't be used as a concurrency group id. We now use `github.triggering_actor-github.head_ref`.
15 lines
458 B
YAML
15 lines
458 B
YAML
name: PRMerge
|
|
run-name: "PR ${{ github.event.number }} Merge by ${{ github.actor }}"
|
|
on:
|
|
pull_request_target:
|
|
types: [ labeled ]
|
|
|
|
jobs:
|
|
PRMerge:
|
|
name: "run-merge"
|
|
if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name)
|
|
concurrency:
|
|
group: merge-${{ github.triggering_actor }}-${{ github.head_ref }}
|
|
cancel-in-progress: true
|
|
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRMerge.yml@main
|