Skip to content

Commit

Permalink
Fix commit message single quote escaping on GitHub Action (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
0x2b3bfa0 authored Dec 24, 2023
1 parent 1cc41e2 commit a98a4de
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ runs:
BASE: ${{ inputs.base }}
HEAD: ${{ inputs.head }}
ARGS: ${{ inputs.extra_args }}
COMMITS: ${{ toJson(github.event.commits) }}
run: |
##########################################
## ADVANCED USAGE ##
Expand All @@ -57,7 +58,7 @@ runs:
##########################################
else
if [ "${{ github.event_name }}" == "push" ]; then
COMMIT_LENGTH=$(jq length <<< '${{ toJson(github.event.commits) }}')
COMMIT_LENGTH=$(printenv COMMITS | jq length)
if [ $COMMIT_LENGTH == "0" ]; then
echo "No commits to scan"
exit 0
Expand Down

0 comments on commit a98a4de

Please sign in to comment.