From 1c076bda87d1b287f921a3962737b675120b194a Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Wed, 11 Aug 2021 14:38:27 -0400 Subject: [PATCH] Update discord action (#480) * Updating docker action * adding version to message * adding way to get PR title and body * Adding input pass to workflows Workflow dispatches may not get push header info. Switching logic to pass needed title and body info through just in case. * adding token The description on this action is awful, it didn't mention needing a token. I found this solution from the repo's issues * parsing pr body * Updating parsing * Updating docker workflow * Reverting back to default variables * fixing syntax error * removing heading syntax * updating parse --- .github/workflows/sonar-scan.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index e679b663c..29726048d 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -137,7 +137,7 @@ jobs: run: | body='${{ steps.findPr.outputs.body }}' newBody="${body//$'\n'/}" - newBody="${body//$'#'/}" + newBody="${newBody//$'#'/}" echo $newBody echo "::set-output name=BODY::$newBody" id: parse-body