Skip to content

Commit

Permalink
Updated logging
Browse files Browse the repository at this point in the history
  • Loading branch information
katybaulch committed May 21, 2024
1 parent 5453c49 commit 7412196
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,9 @@ runs:
pr_dump_file: "./tmp_pr_body_dump.txt"
run: |
if [[
"${{contains(format(fromJSON('"{0}"'), fromJson(steps.get_pr_data.outputs.result).body), fromJSON('"`"'))}}" = 'true' ||
"${{contains(format(fromJSON('"{0}"'), fromJson(steps.get_pr_data.outputs.result).body), fromJSON('"<"'))}}" = 'true'
"${{contains(format(fromJSON('"{0}"'), fromJson(steps.get_pr_data.outputs.result).body), fromJSON('">"'))}}" = 'true'
]]; then
echo "PR body contains special characters."
echo "Please remove special chars '`', '<' and '>' from PR description and try again."
echo "Please remove HTML tags from PR description and try again."
exit 1
else
Expand Down

0 comments on commit 7412196

Please sign in to comment.