From fe761d85682f448c2e40ef2790d196421594bc71 Mon Sep 17 00:00:00 2001 From: Alex Borro Date: Tue, 26 Mar 2024 11:51:17 +0100 Subject: [PATCH] Add generic input for extra variables --- .github/workflows/build.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 729123f..ce95b83 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,6 +6,11 @@ on: required: true type: string + extra_vars: + description: "Extra variables to be exported, e.g.: BUILDTYPE=PRODUCTION UMLM_ENCRYPTION_KEY="${{ secrets.UMLM_ENCRYPTION_KEY }}" + required: false + type: string + jobs: Build: name: 'Build Package' @@ -22,9 +27,7 @@ jobs: - name: Build Package id: build run: | - export BUILDTYPE=PRODUCTION - export UMLM_ENCRYPTION_KEY="${{ secrets.UMLM_ENCRYPTION_KEY }}" - export RELEASE_VERSION="${{ env.RELEASE_VERSION }}" + export ${{ inputs.extra_vars }} echo "RELEASE_VERSION: ${RELEASE_VERSION}" ./build_for_ultimaker.sh -a build