From 74121965dde4afa5ac5f7dfe9b9a9e1a7ed36897 Mon Sep 17 00:00:00 2001 From: Katy Baulch <46493669+katybaulch@users.noreply.github.com> Date: Tue, 21 May 2024 14:05:25 +0100 Subject: [PATCH] Updated logging --- action.yml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/action.yml b/action.yml index 2be509c..365ad6b 100644 --- a/action.yml +++ b/action.yml @@ -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