Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 14 additions & 4 deletions .github/workflows/tag_creation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ jobs:
- name: Check if version exists in CHANGELOG.md
run: |
VERSION=${{ steps.version.outputs.version }}
if ! grep -q "##\s*\[$VERSION\]" CHANGELOG.md; then
echo "❌ CHANGELOG.md does not contain an entry for version [$VERSION]"
echo "👉 Please add a changelog entry like: '## [$VERSION]'"
if ! grep -q "##\s*$VERSION" CHANGELOG.md; then
echo "❌ CHANGELOG.md does not contain an entry for version $VERSION"
echo "👉 Please add a changelog entry before tagging."
exit 1
fi
echo "✅ Found changelog entry for [$VERSION]"
echo "✅ Found changelog entry for $VERSION"

- name: Create and push tag with gh + PAT
env:
Expand All @@ -59,3 +59,13 @@ jobs:
-f sha="$(git rev-parse HEAD)"

echo "✅ Tag $VERSION pushed successfully!"

# 🔍 Debugging step
- name: Debug GitHub event payload
run: |
echo "🚀 Event name: $GITHUB_EVENT_NAME"
echo "🔖 Ref: $GITHUB_REF"
echo "📦 Repo: $GITHUB_REPOSITORY"
echo "📂 Event path: $GITHUB_EVENT_PATH"
cat $GITHUB_EVENT_PATH
echo "👤 Actor: $GITHUB_ACTOR"