Skip to content

Commit 0fef698

Browse files
committed
.github: Update workflows to same level as Asterisk
* Renamed to be consistent. * OnPRReCheck was merged into OnPrCheck. * They all now call reusable workflows in asterisk-ci-actions
1 parent 86915dc commit 0fef698

File tree

7 files changed

+37
-268
lines changed

7 files changed

+37
-268
lines changed

.github/workflows/OnPRCPCheck.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PRCPCheck
2+
run-name: "PR ${{ github.event.number }} CPCheck by ${{ github.actor }}"
3+
on:
4+
pull_request_target:
5+
types: [ labeled ]
6+
7+
jobs:
8+
PRCPCheck:
9+
name: "run-cpcheck"
10+
if: ${{ github.event.label.name == vars.CHERRY_PICK_TEST_LABEL }}
11+
concurrency:
12+
group: cpcheck-${{ github.base_ref }}-${{ github.ref_name }}
13+
cancel-in-progress: true
14+
uses: asterisk/asterisk-ci-actions/.github/workflows/TestsuitePRCPCheck.yml@main-pr-target

.github/workflows/OnPRCheck.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: PRCheck
2+
run-name: "PR ${{ github.event.number }} Check(${{github.event.action}}) by ${{ github.actor }}"
3+
on:
4+
pull_request_target:
5+
types: [ opened, reopened, synchronize, labeled ]
6+
7+
jobs:
8+
PRCheck:
9+
name: "run-check"
10+
if: ${{ (github.event.action != 'labeled') || (github.event.action == 'labeled' && github.event.label.name == vars.RECHECKPR_LABEL) }}
11+
concurrency:
12+
group: check-${{ github.base_ref }}-${{ github.ref_name }}
13+
cancel-in-progress: true
14+
uses: asterisk/asterisk-ci-actions/.github/workflows/TestsuitePRCheck.yml@main-pr-target

.github/workflows/OnPRCherryPickTest.yml

Lines changed: 0 additions & 105 deletions
This file was deleted.
Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,14 @@
1-
name: MergePR
2-
run-name: "PR ${{ github.event.number }} MergeApproved"
1+
name: PRMerge
2+
run-name: "PR ${{ github.event.number }} Merge by ${{ github.actor }}"
33
on:
44
pull_request_target:
5-
types: [labeled]
6-
7-
concurrency:
8-
group: ${{ github.workflow }}-${{ github.event.label.name }}-${{ github.event.number }}
9-
cancel-in-progress: true
5+
types: [ labeled ]
106

117
jobs:
12-
MergePR:
13-
name: MergePR
8+
PRMerge:
9+
name: "run-merge"
1410
if: contains(fromJSON(vars.MERGE_APPROVED_LABELS), github.event.label.name)
15-
uses: asterisk/asterisk-ci-actions/.github/workflows/TestsuiteMergePR.yml@main
16-
secrets:
17-
TOKEN: ${{ secrets.GITHUB_TOKEN }}
18-
application_id: ${{ secrets.ASTERISK_ORG_ACCESS_APP_ID }}
19-
application_private_key: ${{ secrets.ASTERISK_ORG_ACCESS_APP_PRIV_KEY }}
11+
concurrency:
12+
group: merge-${{ github.base_ref }}-${{ github.ref_name }}
13+
cancel-in-progress: true
14+
uses: asterisk/asterisk-ci-actions/.github/workflows/TestsuitePRMerge.yml@main-pr-target

.github/workflows/OnPRRecheck.yml

Lines changed: 0 additions & 70 deletions
This file was deleted.

.github/workflows/OnPRStateChanged.yml

Lines changed: 0 additions & 52 deletions
This file was deleted.

.github/workflows/OnPRStateChangedPriv.yml

Lines changed: 0 additions & 27 deletions
This file was deleted.

0 commit comments

Comments
 (0)