mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Updating discord action (#479)
* 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
This commit is contained in:
parent
2641bea9c6
commit
caba56e8ec
2
.github/workflows/nightly-docker.yml
vendored
2
.github/workflows/nightly-docker.yml
vendored
@ -91,4 +91,4 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
webhook: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
|
webhook: ${{ secrets.DISCORD_DOCKER_UPDATE_URL }}
|
||||||
message: "A new nightly build v${{steps.get-version.outputs.assembly-version}} has been released for docker.\nhttps://hub.docker.com/r/kizaing/kavita/tags?page=1&ordering=last_updated"
|
message: "A new nightly build v${{steps.get-version.outputs.assembly-version}} has been released for docker.\nhttps://hub.docker.com/r/kizaing/kavita/tags?page=1&ordering=last_updated"
|
||||||
embed: '{ "title": "{{ commit.title }}", "description": "{{ commit.description }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://avatars.io/gravatar/{{ commit.author.email }}"} }'
|
embed: '{ "title": "${{ github.event.inputs.title }}", "description": "${{ github.event.inputs.body }}", "url": "{{ commit.url }}", "author": { "name": "{{ commit.author.name }} ({{ commit.author.username }})", "icon_url": "https://avatars.io/gravatar/{{ commit.author.email }}"} }'
|
||||||
|
1
.github/workflows/sonar-scan.yml
vendored
1
.github/workflows/sonar-scan.yml
vendored
@ -137,6 +137,7 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
body='${{ steps.findPr.outputs.body }}'
|
body='${{ steps.findPr.outputs.body }}'
|
||||||
newBody="${body//$'\n'/}"
|
newBody="${body//$'\n'/}"
|
||||||
|
newBody="${body//$'#'/}"
|
||||||
echo $newBody
|
echo $newBody
|
||||||
echo "::set-output name=BODY::$newBody"
|
echo "::set-output name=BODY::$newBody"
|
||||||
id: parse-body
|
id: parse-body
|
||||||
|
Loading…
x
Reference in New Issue
Block a user