Skip to content

Kavita is a fast, feature rich, cross platform reading server. Built with the goal of being a full solution for all your reading needs. Setup your own server and share your reading collection with your friends and family.

Update discord action (#486)

Robbie Davisab9c40ddc68d
diff --git a/.github/workflows/nightly-docker.yml b/.github/workflows/nightly-docker.yml
index 0f95013c4..9f57c8974 100644
--- a/.github/workflows/nightly-docker.yml
+++ b/.github/workflows/nightly-docker.yml
@@ -90,7 +90,7 @@ jobs:
uses: rjstone/discord-webhook-notify@v1
with:
severity: info
- description: ${{steps.get-version.outputs.assembly-version}}
+ description: v${{steps.get-version.outputs.assembly-version}}
details: '${{ github.event.inputs.body }}'
text: A new nightly build has been released for docker.
webhookUrl: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
diff --git a/.github/workflows/sonar-scan.yml b/.github/workflows/sonar-scan.yml
index a90ad0746..0afdc4278 100644
--- a/.github/workflows/sonar-scan.yml
+++ b/.github/workflows/sonar-scan.yml
@@ -136,10 +136,9 @@ jobs:
- name: Parse PR body
run: |
body='${{ steps.findPr.outputs.body }}'
- newBody="${body//$'\n'/}"
- newB="${newBody//$'#'/}"
- echo $newB
- echo "::set-output name=BODY::$newB"
+ newBody=$(echo $body | sed ':a;N;$!ba;s/\n/ /g')
+ echo $newBody
+ echo "::set-output name=BODY::$newBody"
id: parse-body
- name: If Push to Develop, Trigger Docker Stable