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

index 9a13ad48aec413bb0c30e57c1255a099278a475c..94f36c575db75265b3631127b7b5e1e573f16bec 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 * * *'
 
@@ -32,6 +39,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