File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ TAG="v$VERSION"
1515sed -i ' ' " s/^Stable tag: .*/Stable tag: $VERSION /" readme.txt
1616
1717# Update version in main plugin file
18- sed -i ' ' " s/^\(\*\s*Version:\s*\).*/\1$VERSION /" webhookarm.php
18+ sed -i ' ' " s/^[[:space:]]*\**[[:space:]]*Version:[[:space:]]*.*/ * Version: $VERSION /" webhookarm.php
19+ sed -i ' ' " s/^\(.*BONO_ARM_WEBHOOK_VERSION', '\)[^']*\('.*\)$/\1$VERSION \2/" webhookarm.php
1920
2021# Git add and commit
2122git add readme.txt webhookarm.php
@@ -24,4 +25,12 @@ git push origin main
2425
2526echo " ✅ Version updated to $VERSION and pushed to main."
2627echo " ⏳ Waiting for GitHub Action to auto-tag version $TAG ..."
27- echo " 👉 Monitor progress at: https://github.com/renatobo/WebHookARM/actions"
28+ echo " 👉 Monitor progress at: https://github.com/renatobo/WebHookARM/actions"
29+
30+ # Create GitHub release using gh CLI
31+ if command -v gh & > /dev/null; then
32+ CHANGELOG=$( git log " $( git describe --tags --abbrev=0) ..HEAD" --pretty=format:" - %s" --no-merges)
33+ gh release create " $TAG " --title " WebHookARM $VERSION " --notes " $CHANGELOG " || echo " ⚠️ GitHub release creation failed or already exists."
34+ else
35+ echo " ⚠️ GitHub CLI (gh) not found. Skipping release creation."
36+ fi
You can’t perform that action at this time.
0 commit comments