mirror of
https://github.com/asterisk/asterisk.git
synced 2026-05-05 04:43:44 +00:00
.github: Refactor to use pull_request_target trigger.
After careful review, we believe we can now use the "pull_request_target"
workflow trigger instead of "pull_request" which required a separate
privliged workflow to add labels and comments to PRs when they are submitted
or updated. This allows us to greatly streamline our workflows and remove
unneeded ones.
* The OnPRChanged workflow was...
* Renamed to OnPRCheck
* Changed to trigger on pull_request_target and the "recheckpr" label.
* Changed to simply call reusable workflows in asterisk-ci-actions.
* Changed to use better concurrency groups.
* The OnPRCPCheck and OnPRMergeApproved workflows were also...
* Changed to simply call reusable workflows in asterisk-ci-actions.
* Changed to use better concurrency groups.
* The NightlyTest and CreateDocs were also tweaked
(cherry picked from commit 9822f6fd25)
This commit is contained in:
committed by
Asterisk Development Team
parent
2c2bf8b535
commit
a96e42c326
14
.github/workflows/OnPRMergeApproved.yml
vendored
14
.github/workflows/OnPRMergeApproved.yml
vendored
@@ -1,16 +1,14 @@
|
||||
name: PRMerge
|
||||
run-name: "PR ${{ github.event.number }} ${{ github.workflow }} by ${{ github.actor }}"
|
||||
run-name: "PR ${{ github.event.number }} Merge by ${{ github.actor }}"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [labeled]
|
||||
types: [ labeled ]
|
||||
|
||||
jobs:
|
||||
PRMerge:
|
||||
if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name)
|
||||
# concurrency:
|
||||
# group: merge-${{ github.event.number }}
|
||||
# cancel-in-progress: true
|
||||
name: "run-merge"
|
||||
if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name)
|
||||
concurrency:
|
||||
group: merge-${{ github.base_ref }}-${{ github.ref_name }}
|
||||
cancel-in-progress: true
|
||||
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRMerge.yml@main
|
||||
secrets:
|
||||
TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
Reference in New Issue
Block a user