Skip to content

Commit 07b4c74

Browse files
chore: Fixing typo in publish workflow
Signed-off-by: Francisco Javier Arceo <farceo@redhat.com>
1 parent e34bf65 commit 07b4c74

1 file changed

Lines changed: 3 additions & 17 deletions

File tree

.github/workflows/publish.yml

Lines changed: 3 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -31,30 +31,16 @@ jobs:
3131
highest_semver_tag: ${{ steps.get_highest_semver.outputs.highest_semver_tag }}
3232
steps:
3333
- uses: actions/checkout@v4
34-
- name: Validate custom version input
35-
id: validate_custom_version
34+
- name: Get release version
35+
id: get_release_version
3636
run: |
3737
if [[ -n "${{ github.event.inputs.custom_version }}" ]]; then
3838
VERSION_REGEX="^v[0-9]+\.[0-9]+\.[0-9]+$"
39+
echo "Using custom version: ${{ github.event.inputs.custom_version }}"
3940
if [[ ! "${{ github.event.inputs.custom_version }}" =~ $VERSION_REGEX ]]; then
4041
echo "Error: custom_version must match semantic versioning (e.g., v1.2.3)."
4142
exit 1
4243
fi
43-
echo "Validated custom version: ${{ github.event.inputs.custom_version }}"
44-
fi
45-
- name: Strip 'v' Prefix for Highest SemVer Tag
46-
id: strip_prefix
47-
run: |
48-
HIGHEST_SEMVER_TAG="${{ github.event.inputs.custom_version#v }}"
49-
echo "::set-output name=highest_semver_tag::$HIGHEST_SEMVER_TAG"
50-
echo "Highest SemVer Tag: $HIGHEST_SEMVER_TAG"
51-
52-
53-
- name: Get release version
54-
id: get_release_version
55-
run: |
56-
if [[ -n "${{ github.event.inputs.custom_version }}" ]]; then
57-
echo "Using custom version: ${{ github.event.inputs.custom_version }}"
5844
echo "::set-output name=release_version::${{ github.event.inputs.custom_version }}"
5945
elif [[ "${GITHUB_REF}" == refs/tags/* ]]; then
6046
echo "Using tag reference: ${GITHUB_REF#refs/tags/}"

0 commit comments

Comments
 (0)