Skip to content

Commit

Permalink
Merge pull request #130 from c-dilks/sanitize-dispatch-payload
Browse files Browse the repository at this point in the history
fix(ci): sanitize validation dispatch payload
  • Loading branch information
baltzell authored Oct 12, 2023
2 parents ce150f6 + 30f2c0e commit e8f5265
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
name: clas12-validation dispatch
runs-on: ubuntu-latest
steps:
- name: sanitize message
id: sanitize
run: echo title=$(echo "${{ github.event.pull_request.title || github.event.head_commit.message }}" | head -n1 | sed 's;";;g' | sed "s;';;g") >> $GITHUB_OUTPUT
- name: dispatch
uses: c-dilks/trigger-workflow-and-wait@summarize # convictional/[email protected]
with:
Expand All @@ -27,7 +30,7 @@ jobs:
ref: main
client_payload: '{
"source": "${{ github.repository }}",
"title": "${{ github.event.pull_request.title || github.event.head_commit.message }}",
"title": "${{ steps.sanitize.outputs.title }}",
"source_url": "${{ github.event.pull_request.html_url }}",
"git_coatjava": "{\"fork\": \"${{ github.repository }}\", \"branch\": \"${{ github.head_ref || github.ref }}\" }"
}'

0 comments on commit e8f5265

Please sign in to comment.