mirror of
https://github.com/Kareadita/Kavita.git
synced 2025-07-09 03:04:19 -04:00
Update discord action (#482)
* 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
This commit is contained in:
parent
e805632151
commit
58d634c07d
10
.github/workflows/nightly-docker.yml
vendored
10
.github/workflows/nightly-docker.yml
vendored
@ -87,8 +87,10 @@ jobs:
|
||||
run: echo ${{ steps.docker_build.outputs.digest }}
|
||||
|
||||
- name: Notify Discord
|
||||
uses: Sniddl/discord-commits@v1.3
|
||||
uses: rjstone/discord-webhook-notify@v1
|
||||
with:
|
||||
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"
|
||||
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 }}"} }'
|
||||
severity: info
|
||||
description: ${{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 }}
|
||||
|
2
.github/workflows/sonar-scan.yml
vendored
2
.github/workflows/sonar-scan.yml
vendored
@ -160,4 +160,4 @@ jobs:
|
||||
uses: benc-uk/workflow-dispatch@v1
|
||||
with:
|
||||
workflow: Build Stable Docker
|
||||
token: ${{ secrets.REPO_GHA_PAT }}
|
||||
token: ${{ secrets.REPO_GHA_PAT }}
|
Loading…
x
Reference in New Issue
Block a user