Skip to content

Commit

Permalink
Update build.yml
Browse files Browse the repository at this point in the history
#!skip-build!#

Add ability to append suffixes to versions
  • Loading branch information
jf-06 committed Sep 3, 2024
1 parent a313599 commit eb4f747
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,11 @@ on:
default: true
type: boolean

version_suffix:
description: "Version Suffix"
required: false
type: string

permissions:
contents: write
deployments: write
Expand Down Expand Up @@ -85,6 +90,8 @@ jobs:

COMPONENT_NAMES: ${{ github.event.inputs.components || needs.get-component-names.outputs.components }}

VERSION_SUFFIX: ${{ github.event.inputs.version_suffix || '' }}

outputs:
components: ${{ steps.build-components.outputs.components }}
version: ${{ steps.version.outputs.version }}
Expand Down Expand Up @@ -125,6 +132,11 @@ jobs:
VERSION="$VERSION-dev"
fi
# If we have a version suffix, append it
if [ -n "${{ env.VERSION_SUFFIX }}" ]; then
VERSION="$VERSION${{ env.VERSION_SUFFIX }}"
fi
echo "version=$VERSION" >> $GITHUB_OUTPUT
- name: Build Components
Expand Down

0 comments on commit eb4f747

Please sign in to comment.