Skip to content

Commit c35834a

Browse files
authored
Merge pull request #33 from cedvdb/fix/tag-creation-workflow
Fixed tag creation workflow
2 parents 7e8a606 + 9dbd0ab commit c35834a

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

.github/workflows/tag_creation.yml

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff 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:
@@ -59,3 +59,13 @@ jobs:
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"

0 commit comments

Comments
 (0)