From 57f08b69982dab595cdad2bff15da4869bc79455 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Wed, 11 Aug 2021 09:30:09 -0400 Subject: [PATCH] Updating discord workflow (#474) * 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 --- .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 538265a94..22edd72a7 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -136,7 +136,7 @@ jobs: - name: Parse PR body run: | body='${{ steps.findPr.outputs.body }}' - newBody=sed '$!s/$/\\n/' body | tr -d '\n' + newBody="${body//$'\n'/}" echo $newBody echo "::set-output name=BODY::$newBody" id: parse-body