]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make builder workflow reusable 13569/head
authorromeroalx <alexis.romero@open-xchange.com>
Wed, 22 Nov 2023 13:07:38 +0000 (14:07 +0100)
committerromeroalx <alexis.romero@open-xchange.com>
Fri, 24 Nov 2023 05:53:19 +0000 (06:53 +0100)
.github/workflows/builder.yml

index c566979eff47d69a5dc3cb6e75c87117063389ee..98bbb60eefcdfd844fec8120fe736cc42eb77231 100644 (file)
@@ -2,6 +2,13 @@
 name: 'Test package building for specific distributions'
 
 on:
+  workflow_call:
+    inputs:
+      branch-name:
+        description: 'Checkout to a specific branch'
+        required: true
+        default: ''
+        type: string
   schedule:
     - cron: '0 1 * * *'
 
@@ -29,6 +36,7 @@ jobs:
         with:
           fetch-depth: 0  # for correct version numbers
           submodules: recursive
+          ref: ${{ inputs.branch-name }}
       # this builds packages and runs our unit test (make check)
       - run: builder/build.sh -v -m ${{ matrix.product }} ${{ matrix.os }}
       - name: Get version number