Skip to content

Commit

Permalink
Final fix for release pipeline prerelease regex
Browse files Browse the repository at this point in the history
  • Loading branch information
medley56 committed Oct 9, 2024
1 parent e2e6671 commit 1873d9c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -132,10 +132,10 @@ jobs:
# Marks final releases only for tags matching the regex (no version suffixes)
# All other releases are marked as prereleases
run: |
if [[ "${{ github.ref_name }}" =~ '^.*[0-9]*\.[0-9]*\.[0-9]*$' ]]; then
if [[ ${{ github.ref_name }} =~ '^.*[0-9]*\.[0-9]*\.[0-9]*$' ]]; then
echo "PRE_RELEASE_OPTION=''" >> $GITHUB_ENV # Not a prerelease
else
echo "PRE_RELEASE_OPTION='--prerelease'" >> $GITHUB_ENV # Is a prerelease
echo "PRE_RELEASE_OPTION=--prerelease" >> $GITHUB_ENV # Is a prerelease
fi
- name: Get latest non-prerelease release
Expand Down

0 comments on commit 1873d9c

Please sign in to comment.