Skip to content

Commit 7481e94

Browse files
committed
Fix version check
1 parent 1b983da commit 7481e94

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,13 @@ jobs:
2222
name: Check build and publish versions
2323
runs-on: ubuntu-latest
2424
outputs:
25-
TAG_NAME: ${{ env.TAG_NAME }}
25+
TAG_NAME: ${{ steps.get_tag.outputs.tag }}
2626
VERSION: ${{ steps.get_version.outputs.version }}
2727
steps:
28+
- name: Get Tag
29+
id: get_tag
30+
run: echo "tag=${GITHUB_REF##*/}" >> "$GITHUB_OUTPUT"
31+
2832
- name: Wait for build workflow to finish
2933
uses: lewagon/[email protected]
3034
with:
@@ -51,8 +55,8 @@ jobs:
5155
# Check if the publish.gradle version matches the tag name
5256
- name: Check version
5357
run: |
54-
if [[ "${{ steps.get-version.outputs.expectedTagName }}" != "${{ env.TAG_NAME }}" ]]; then
55-
echo "Version mismatch: ${{ steps.get-version.outputs.expectedTagName }} != ${{ env.TAG_NAME }}"
58+
if [[ "${{ steps.get-version.outputs.expectedTagName }}" != "${{ steps.get_tag.outputs.tag }}" ]]; then
59+
echo "Version mismatch: ${{ steps.get-version.outputs.expectedTagName }} != ${{ steps.get_tag.outputs.tag }}"
5660
exit 1
5761
fi
5862
@@ -85,4 +89,4 @@ jobs:
8589
tag_name: v${{ steps.get-version.outputs.version }}
8690
name: Version ${{ steps.get-version.outputs.version }}
8791
files: |
88-
**/**
92+
**/**

0 commit comments

Comments
 (0)