File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -32,12 +32,12 @@ jobs:
3232 - name : Check if version exists in CHANGELOG.md
3333 run : |
3434 VERSION=${{ steps.version.outputs.version }}
35- if ! grep -q "##\s*\[ $VERSION\] " CHANGELOG.md; then
36- echo "❌ CHANGELOG.md does not contain an entry for version [ $VERSION] "
37- echo "👉 Please add a changelog entry like: '## [$VERSION]' "
35+ if ! grep -q "##\s*$VERSION" CHANGELOG.md; then
36+ echo "❌ CHANGELOG.md does not contain an entry for version $VERSION"
37+ echo "👉 Please add a changelog entry before tagging. "
3838 exit 1
3939 fi
40- echo "✅ Found changelog entry for [ $VERSION] "
40+ echo "✅ Found changelog entry for $VERSION"
4141
4242 - name : Create and push tag with gh + PAT
4343 env :
5959 -f sha="$(git rev-parse HEAD)"
6060
6161 echo "✅ Tag $VERSION pushed successfully!"
62+
63+ # 🔍 Debugging step
64+ - name : Debug GitHub event payload
65+ run : |
66+ echo "🚀 Event name: $GITHUB_EVENT_NAME"
67+ echo "🔖 Ref: $GITHUB_REF"
68+ echo "📦 Repo: $GITHUB_REPOSITORY"
69+ echo "📂 Event path: $GITHUB_EVENT_PATH"
70+ cat $GITHUB_EVENT_PATH
71+ echo "👤 Actor: $GITHUB_ACTOR"
You can’t perform that action at this time.
0 commit comments