Skip to content

Commit e3e8c97

Browse files
fix: Adding input to workflow
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent a2fc191 commit e3e8c97

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/publish.yml

+11
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,17 @@ jobs:
2020
runs-on: ubuntu-latest
2121
outputs:
2222
highest_semver_tag: ${{ steps.strip_prefix.outputs.highest_semver_tag }}
23+
steps:
24+
- name: Strip 'v' Prefix for Highest SemVer Tag
25+
id: strip_prefix
26+
run: |
27+
if [[ -z "${{ github.event.inputs.custom_version }}" ]]; then
28+
echo "Error: custom_version input is required."
29+
exit 1
30+
fi
31+
HIGHEST_SEMVER_TAG="${{ github.event.inputs.custom_version#v }}"
32+
echo "::set-output name=highest_semver_tag::$HIGHEST_SEMVER_TAG"
33+
echo "Highest SemVer Tag: $HIGHEST_SEMVER_TAG"
2334
get-version:
2435
if: github.repository == 'feast-dev/feast'
2536
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)