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

index b91d2388438b3727c07abd5503c6792f63f6231a..dc282cdde96a83eb1895a8b44daa7e6c63dea55c 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 * * *'
 
@@ -33,6 +40,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