Skip to content

Commit

Permalink
Add generic input for extra variables
Browse files Browse the repository at this point in the history
  • Loading branch information
alexborro committed Mar 26, 2024
1 parent 91c7e5a commit fe761d8
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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
Expand Down

0 comments on commit fe761d8

Please sign in to comment.