Skip to content

Commit 75ed20e

Browse files
committed
.github: Update workflows to same level as Asterisk
1 parent 86915dc commit 75ed20e

7 files changed

+37
-268
lines changed

Diff for: .github/workflows/OnPRCPCheck.yml

+14
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

Diff for: .github/workflows/OnPRCheck.yml

+14
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

Diff for: .github/workflows/OnPRCherryPickTest.yml

-105
This file was deleted.

Diff for: .github/workflows/OnPRMergeApproved.yml

+9-14
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

Diff for: .github/workflows/OnPRRecheck.yml

-70
This file was deleted.

Diff for: .github/workflows/OnPRStateChanged.yml

-52
This file was deleted.

Diff for: .github/workflows/OnPRStateChangedPriv.yml

-27
This file was deleted.

0 commit comments

Comments
 (0)