Updating discord action (#478)

## Changes
- Changed github action to allow for discord notification to use markdown styling

## Added
- Added version to discord notification
- Added ability to use PR body instead of commit body for discord notification description.
This commit is contained in:
Robbie Davis 2021-08-11 10:57:19 -04:00 committed by GitHub
parent 9f64037dc7
commit 68abfa974e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -91,4 +91,4 @@ jobs:
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": "{{ 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": "{{ 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 }}"} }'