Skip to content

Commit eb4f747

Browse files
committed
Update build.yml
#!skip-build!# Add ability to append suffixes to versions
1 parent a313599 commit eb4f747

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

+12
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ on:
3737
default: true
3838
type: boolean
3939

40+
version_suffix:
41+
description: "Version Suffix"
42+
required: false
43+
type: string
44+
4045
permissions:
4146
contents: write
4247
deployments: write
@@ -85,6 +90,8 @@ jobs:
8590

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

93+
VERSION_SUFFIX: ${{ github.event.inputs.version_suffix || '' }}
94+
8895
outputs:
8996
components: ${{ steps.build-components.outputs.components }}
9097
version: ${{ steps.version.outputs.version }}
@@ -125,6 +132,11 @@ jobs:
125132
VERSION="$VERSION-dev"
126133
fi
127134
135+
# If we have a version suffix, append it
136+
if [ -n "${{ env.VERSION_SUFFIX }}" ]; then
137+
VERSION="$VERSION${{ env.VERSION_SUFFIX }}"
138+
fi
139+
128140
echo "version=$VERSION" >> $GITHUB_OUTPUT
129141
130142
- name: Build Components

0 commit comments

Comments
 (0)