mirror of
https://github.com/asterisk/asterisk.git
synced 2026-04-22 05:50:19 +00:00
.github: Replace separate check, cpcheck and merge workflows with OnPRAction
This commit is contained in:
10
.github/workflows/OnPRAction.yml
vendored
Normal file
10
.github/workflows/OnPRAction.yml
vendored
Normal file
@@ -0,0 +1,10 @@
|
||||
name: PR
|
||||
run-name: "PR ${{ github.event.number }} ${{github.event.action}}${{ case(github.event.action == 'labeled', format('({0})', github.event.label.name) , '') }} by ${{ github.actor }}"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ opened, reopened, synchronize, labeled ]
|
||||
|
||||
jobs:
|
||||
PRAction:
|
||||
name: "Action"
|
||||
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRAction.yml@main
|
||||
14
.github/workflows/OnPRCPCheck.yml
vendored
14
.github/workflows/OnPRCPCheck.yml
vendored
@@ -1,14 +0,0 @@
|
||||
name: PRCPCheck
|
||||
run-name: "PR ${{ github.event.number }} CPCheck by ${{ github.actor }}"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ labeled ]
|
||||
|
||||
jobs:
|
||||
PRCPCheck:
|
||||
name: "run-cpcheck"
|
||||
if: ${{ github.event.label.name == vars.CHERRY_PICK_TEST_LABEL }}
|
||||
concurrency:
|
||||
group: cpcheck-${{ github.triggering_actor }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCPCheck.yml@main
|
||||
14
.github/workflows/OnPRCheck.yml
vendored
14
.github/workflows/OnPRCheck.yml
vendored
@@ -1,14 +0,0 @@
|
||||
name: PRCheck
|
||||
run-name: "PR ${{ github.event.number }} Check(${{github.event.action}}) by ${{ github.actor }}"
|
||||
on:
|
||||
pull_request_target:
|
||||
types: [ opened, reopened, synchronize, labeled ]
|
||||
|
||||
jobs:
|
||||
PRCheck:
|
||||
name: "run-check"
|
||||
if: ${{ (github.event.action != 'labeled') || (github.event.action == 'labeled' && github.event.label.name == vars.RECHECKPR_LABEL) }}
|
||||
concurrency:
|
||||
group: check-${{ github.triggering_actor }}-${{ github.head_ref }}
|
||||
cancel-in-progress: true
|
||||
uses: asterisk/asterisk-ci-actions/.github/workflows/AsteriskPRCheck.yml@main
|
||||
14
.github/workflows/OnPRMergeApproved.yml
vendored
14
.github/workflows/OnPRMergeApproved.yml
vendored
@@ -1,14 +0,0 @@
|
||||
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
|
||||
Reference in New Issue
Block a user