File tree Expand file tree Collapse file tree 1 file changed +4
-16
lines changed
Expand file tree Collapse file tree 1 file changed +4
-16
lines changed Original file line number Diff line number Diff line change @@ -527,24 +527,12 @@ jobs:
527527 working-directory : ${{ github.event.repository.name }}/${{ inputs.package-subdirectory }}
528528 run : |
529529 # Bash script run
530- if ! command -v git > /dev/null 2>&1
531- then
532- echo "git could not be found"
533- exit 0
534- fi
535- if ! command -v grep > /dev/null 2>&1
536- then
537- echo "grep could not be found"
538- exit 0
539- fi
540- if ! command -v sed > /dev/null 2>&1
541- then
542- echo "sed could not be found"
543- exit 0
544- fi
530+ commit_msg=$( git log -1 --pretty=%B )
545531
532+ echo "Commit msg is ${commit_msg}"
546533 # Exit early if tag is on commit message even if it set to true
547- test_all=$( git log -1 --pretty=%B | grep -F "[run-all-tests]" )
534+ test_all=$( echo "${commit_msg}" | grep -zvF "[run-all-tests]" | tr -d '\0')
535+
548536 if [ -z "$test_all" ]
549537 then {
550538 echo "Last commit message forces to test everything."
You can’t perform that action at this time.
0 commit comments