File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change 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
29333034 with :
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
8589 tag_name : v${{ steps.get-version.outputs.version }}
8690 name : Version ${{ steps.get-version.outputs.version }}
8791 files : |
88- **/**
92+ **/**
You can’t perform that action at this time.
0 commit comments