5757 - name : Check if tag exists
5858 id : check_tag
5959 run : |
60- if git rev-parse "v ${{ env.VERSION }}" >/dev/null 2>&1; then
60+ if git rev-parse "${{ env.VERSION }}" >/dev/null 2>&1; then
6161 echo "exists=true" >> $GITHUB_OUTPUT
6262 echo "Tag ${{ env.VERSION }} already exists"
6363 else
@@ -91,17 +91,17 @@ jobs:
9191 run : |
9292 git config user.name "github-actions[bot]"
9393 git config user.email "github-actions[bot]@users.noreply.github.com"
94- git tag -a "v ${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
95- git push origin "v ${{ env.VERSION }}"
94+ git tag -a "${{ env.VERSION }}" -m "Release version ${{ env.VERSION }}"
95+ git push origin "${{ env.VERSION }}"
9696
9797 - name : Create GitHub Release
9898 if : github.event_name == 'push' && steps.check_tag.outputs.exists == 'false'
9999 uses : softprops/action-gh-release@v2
100100 with :
101- tag_name : v ${{ env.VERSION }}
102- name : Release v ${{ env.VERSION }}
101+ tag_name : ${{ env.VERSION }}
102+ name : Release ${{ env.VERSION }}
103103 body : |
104- ## PluginUpdateCore v ${{ env.VERSION }}
104+ ## PluginUpdateCore ${{ env.VERSION }}
105105
106106 ### 📦 Artifacts
107107 - Main JAR: `PluginUpdateCore-${{ env.VERSION }}.jar`
@@ -145,9 +145,9 @@ jobs:
145145 run : |
146146 if [ "${{ steps.check_tag.outputs.exists }}" == "true" ]; then
147147 echo "✅ Build completed successfully"
148- echo "ℹ️ Release v ${{ env.VERSION }} already exists, skipping release creation"
148+ echo "ℹ️ Release ${{ env.VERSION }} already exists, skipping release creation"
149149 else
150150 echo "✅ Build completed successfully"
151- echo "🚀 Release v ${{ env.VERSION }} created successfully"
151+ echo "🚀 Release ${{ env.VERSION }} created successfully"
152152 echo "📦 Artifacts uploaded to GitHub Release"
153153 fi
0 commit comments