]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
make builder workflow reusable 13571/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 06:52:13 +0000 (07:52 +0100)
.github/workflows/builder.yml

index 128cb0ce8fa96b9ee37322cf17710da2b617547e..bc34e10f80e950be534cb8eb9c215faa96079b12 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 * * *'
 
@@ -30,6 +37,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