Skip to content

Commit

Permalink
fix: Adding input to workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
  • Loading branch information
franciscojavierarceo committed Dec 6, 2024
1 parent a2fc191 commit e3e8c97
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,17 @@ jobs:
runs-on: ubuntu-latest
outputs:
highest_semver_tag: ${{ steps.strip_prefix.outputs.highest_semver_tag }}
steps:
- name: Strip 'v' Prefix for Highest SemVer Tag
id: strip_prefix
run: |
if [[ -z "${{ github.event.inputs.custom_version }}" ]]; then
echo "Error: custom_version input is required."
exit 1
fi
HIGHEST_SEMVER_TAG="${{ github.event.inputs.custom_version#v }}"
echo "::set-output name=highest_semver_tag::$HIGHEST_SEMVER_TAG"
echo "Highest SemVer Tag: $HIGHEST_SEMVER_TAG"
get-version:
if: github.repository == 'feast-dev/feast'
runs-on: ubuntu-latest
Expand Down

0 comments on commit e3e8c97

Please sign in to comment.