mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-07 10:14:12 -04:00
Update discord action (#486)
* 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
This commit is contained in:
parent
db74155a70
commit
ab9c40ddc6
2
.github/workflows/nightly-docker.yml
vendored
2
.github/workflows/nightly-docker.yml
vendored
@ -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 }}
|
||||
|
7
.github/workflows/sonar-scan.yml
vendored
7
.github/workflows/sonar-scan.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user