]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Add a dispatch workflow to test package building for exotic distributions 16078/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Sep 2025 13:18:29 +0000 (15:18 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Thu, 4 Sep 2025 13:54:50 +0000 (15:54 +0200)
Signed-off-by: Remi Gacogne <remi.gacogne@powerdns.com>
.github/workflows/build-exotic-distributions-packages-dispatch.yml [new file with mode: 0644]
.github/workflows/builder.yml

diff --git a/.github/workflows/build-exotic-distributions-packages-dispatch.yml b/.github/workflows/build-exotic-distributions-packages-dispatch.yml
new file mode 100644 (file)
index 0000000..bf355f1
--- /dev/null
@@ -0,0 +1,20 @@
+---
+name: Trigger build of packages on exotic distributions for a specific ref
+
+on:
+  workflow_dispatch:
+    inputs:
+      ref:
+        description: git ref to checkout
+        type: string
+        default: master
+
+permissions: # least privileges, see https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#permissions
+  contents: read
+
+jobs:
+  build:
+    name: call the workflow to build packages
+    uses: PowerDNS/pdns/.github/workflows/builder.yml@master
+    with:
+      branch-name: ${{ github.event.inputs.ref }}
index 8cd416cedb0b446ea66438474d8acad4fb8b9ab3..a967c1a66669f10947274d5f434f2d492733e1f6 100644 (file)
@@ -28,7 +28,7 @@ jobs:
 
   build:
     name: build.sh
-    if: ${{ vars.SCHEDULED_JOBS_BUILDER }}
+    if: ${{ vars.SCHEDULED_JOBS_BUILDER || github.event_name != 'schedule' }}
     needs: prepare
     runs-on: ${{ matrix.runner-os }}
     strategy: