Skip to content

Commit

Permalink
Fix trigger-api-go-update GHA to escape backticks in commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
rodrigozhou committed Nov 22, 2024
1 parent 39ce2cb commit 4e7fc54
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/trigger-api-go-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ jobs:
BRANCH=${BRANCH#refs/heads/}
COMMIT_AUTHOR=${{ toJSON(github.event.head_commit.author.name) }}
COMMIT_AUTHOR_EMAIL=${{ toJSON(github.event.head_commit.author.email) }}
COMMIT_MESSAGE=${{ toJSON(github.event.head_commit.message) }}
COMMIT_MESSAGE=$(cat << 'EOF' | xargs
${{ toJSON(github.event.head_commit.message) }}
EOF
)
;;
"workflow_dispatch")
Expand Down

0 comments on commit 4e7fc54

Please sign in to comment.