File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 48
48
echo "version=$(cat version/version.txt)" >> $GITHUB_OUTPUT
49
49
echo "expectedTagName=v$(cat version/version.txt)" >> $GITHUB_OUTPUT
50
50
51
+ # Check if the publish.gradle version matches the tag name
52
+ - name : Check version
53
+ run : |
54
+ if [[ "${{ steps.get-version.outputs.expectedTagName }}" != "${{ env.TAG_NAME }}" ]]; then
55
+ echo "Version mismatch: ${{ steps.get-version.outputs.expectedTagName }} != ${{ env.TAG_NAME }}"
56
+ exit 1
57
+ fi
58
+
51
59
# Creates a release draft with the artifacts from the build workflow
52
60
prepare-release :
53
61
name : Prepare release
74
82
with :
75
83
draft : true
76
84
generate_release_notes : true
85
+ tag_name : v${{ steps.get-version.outputs.version }}
86
+ name : Version ${{ steps.get-version.outputs.version }}
77
87
files : |
78
88
**/**
You can’t perform that action at this time.
0 commit comments