.github: Change concurrency group ids so they're unique.

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`.
pull/1145/head
George Joseph 2 months ago
parent a39f3d5adb
commit 32b0b47348

@ -9,6 +9,6 @@ jobs:
name: "run-cpcheck" name: "run-cpcheck"
if: ${{ github.event.label.name == vars.CHERRY_PICK_TEST_LABEL }} if: ${{ github.event.label.name == vars.CHERRY_PICK_TEST_LABEL }}
concurrency: concurrency:
group: cpcheck-${{ github.base_ref }}-${{ github.ref_name }} group: cpcheck-${{ github.triggering_actor }}-${{ github.head_ref }}
cancel-in-progress: true cancel-in-progress: true
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCPCheck.yml@main uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCPCheck.yml@main

@ -9,6 +9,6 @@ jobs:
name: "run-check" name: "run-check"
if: ${{ (github.event.action != 'labeled') || (github.event.action == 'labeled' && github.event.label.name == vars.RECHECKPR_LABEL) }} if: ${{ (github.event.action != 'labeled') || (github.event.action == 'labeled' && github.event.label.name == vars.RECHECKPR_LABEL) }}
concurrency: concurrency:
group: check-${{ github.base_ref }}-${{ github.ref_name }} group: check-${{ github.triggering_actor }}-${{ github.head_ref }}
cancel-in-progress: true cancel-in-progress: true
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCheck.yml@main uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCheck.yml@main

@ -9,6 +9,6 @@ jobs:
name: "run-merge" name: "run-merge"
if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name) if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name)
concurrency: concurrency:
group: merge-${{ github.base_ref }}-${{ github.ref_name }} group: merge-${{ github.triggering_actor }}-${{ github.head_ref }}
cancel-in-progress: true cancel-in-progress: true
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRMerge.yml@main uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRMerge.yml@main

Loading…
Cancel
Save