Skip to content

Commit

Permalink
Attempted to fix version-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
OakLoaf committed Oct 17, 2024
1 parent 9d54fe5 commit 9b59871
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/version-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,16 +35,18 @@ jobs:
id: regex-match
with:
text: ${{ env.VERSION }}
regex: '[-a-zA-Z]'
regex: '[a-zA-Z]'
flags: gm

- name: Set project release type
if: ${{ steps.regex-match.outputs.match == '' }}
run: |
if [ "${{ steps.regex-match.outputs.match }}" == "" ]; then
echo "RELEASE_TYPE=alpha" >> $GITHUB_ENV
else
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
fi
echo "RELEASE_TYPE=release" >> $GITHUB_ENV
- name: Set project release type
if: ${{ steps.regex-match.outputs.match != '' }}
run: |
echo "RELEASE_TYPE=alpha" >> $GITHUB_ENV
- name: Build with Gradle
run: |
Expand Down

0 comments on commit 9b59871

Please sign in to comment.