mirror of https://github.com/commaai/tinygrad.git
safely parse quoted titles [run_process_replay] (#5183)
This commit is contained in:
parent
975b811ad9
commit
3af17849bf
|
@ -35,7 +35,7 @@ jobs:
|
|||
run: |
|
||||
RAW_COMMIT_MESSAGE=$(git show -s --format=%B ${{ github.event.pull_request.head.sha }})
|
||||
COMMIT_MESSAGE=$(printf '%q' "$RAW_COMMIT_MESSAGE")
|
||||
RAW_PR_TITLE="${{ github.event.pull_request.title }}"
|
||||
RAW_PR_TITLE=$(jq -r .pull_request.title "$GITHUB_EVENT_PATH")
|
||||
PR_TITLE=$(printf '%q' "$RAW_PR_TITLE")
|
||||
|
||||
if { echo "$COMMIT_MESSAGE" | grep -q "run_process_replay" || echo "$PR_TITLE" | grep -q "run_process_replay" || [ "${{ github.event.inputs.run_process_replay }}" = "true" ]; } && [ "$GITHUB_REF_NAME" != "master" ]; then
|
||||
|
|
Loading…
Reference in New Issue