From 23a06d6ddd034650ee8a05d256620a67237dde76 Mon Sep 17 00:00:00 2001 From: romeroalx Date: Wed, 22 Nov 2023 14:07:38 +0100 Subject: [PATCH] make builder workflow reusable --- .github/workflows/builder.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/builder.yml b/.github/workflows/builder.yml index 6da242107f..8f1ab1cebb 100644 --- a/.github/workflows/builder.yml +++ b/.github/workflows/builder.yml @@ -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 -- 2.47.2