diff --git a/.gitea/workflows/ci-cd.yaml b/.gitea/workflows/ci-cd.yaml index 64a2465..df418d3 100644 --- a/.gitea/workflows/ci-cd.yaml +++ b/.gitea/workflows/ci-cd.yaml @@ -299,10 +299,11 @@ jobs: # Check for version bump on main branch if [ "${{ github.ref }}" = "refs/heads/main" ]; then echo "🔖 Checking for version bump..." - # Always read from git log: ${{ github.event.head_commit.message }} expression - # is interpolated literally into the shell script, so any backtick, unbalanced - # quote, or special char in a commit body breaks the next line of the script - # (observed on PR #32-#35: 'syntax error: unexpected newline'). git log is safe. + # Read commit message from git, NOT from the workflow event payload. + # The event-payload expression is interpolated literally into the + # rendered script (even inside comments — see PR #38 + #46), so any + # backtick / unbalanced quote / multi-line body breaks bash parsing. + # git log is interpolation-free and safe. COMMIT_MSG=$(git log -1 --pretty=%B) ./scripts/ci-version-bump.sh "$COMMIT_MSG" --no-push fi