From 7424dedf4d83e46153ae2de5fe269ec248ad4702 Mon Sep 17 00:00:00 2001 From: Robbie Davis Date: Thu, 12 Aug 2021 12:41:44 -0400 Subject: [PATCH] Update discord action (#487) * 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 * Updating parsing * Updating docker workflow * trying to remove newline * updating parsing * Replacement in parsing * Update sonar-scan.yml --- .github/workflows/sonar-scan.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml index 0afdc4278..51e0f6370 100644 --- a/.github/workflows/sonar-scan.yml +++ b/.github/workflows/sonar-scan.yml @@ -136,9 +136,12 @@ jobs: - name: Parse PR body run: | body='${{ steps.findPr.outputs.body }}' - newBody=$(echo $body | sed ':a;N;$!ba;s/\n/ /g') - echo $newBody - echo "::set-output name=BODY::$newBody" + echo $body + body="${body//'%'/'%25'}" + body="${body//$'\n'/'%0A'}" + body="${body//$'\r'/'%0D'}" + echo $body + echo "::set-output name=BODY::$body" id: parse-body - name: If Push to Develop, Trigger Docker Stable