]> git.ipfire.org Git - thirdparty/asterisk.git/commitdiff
.github: Replace separate check, cpcheck and merge workflows with OnPRAction
authorGeorge Joseph <gjoseph@sangoma.com>
Mon, 2 Mar 2026 17:17:57 +0000 (10:17 -0700)
committerGeorge Joseph <gjoseph@sangoma.com>
Mon, 2 Mar 2026 17:17:57 +0000 (10:17 -0700)
.github/workflows/OnPRAction.yml [new file with mode: 0644]
.github/workflows/OnPRCPCheck.yml [deleted file]
.github/workflows/OnPRCheck.yml [deleted file]
.github/workflows/OnPRMergeApproved.yml [deleted file]

diff --git a/.github/workflows/OnPRAction.yml b/.github/workflows/OnPRAction.yml
new file mode 100644 (file)
index 0000000..794cf02
--- /dev/null
@@ -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
diff --git a/.github/workflows/OnPRCPCheck.yml b/.github/workflows/OnPRCPCheck.yml
deleted file mode 100644 (file)
index 96c0400..0000000
+++ /dev/null
@@ -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
diff --git a/.github/workflows/OnPRCheck.yml b/.github/workflows/OnPRCheck.yml
deleted file mode 100644 (file)
index 53aec01..0000000
+++ /dev/null
@@ -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
diff --git a/.github/workflows/OnPRMergeApproved.yml b/.github/workflows/OnPRMergeApproved.yml
deleted file mode 100644 (file)
index 8c24505..0000000
+++ /dev/null
@@ -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