Use event data to reference repo info in workflows

pull/1040/head
Tyrrrz 1 year ago
parent e052241713
commit 3319b4734d

@ -128,7 +128,7 @@ jobs:
run: >
gh release create ${{ github.ref_name }} DiscordChatExporter.Cli.zip DiscordChatExporter.zip
--title ${{ github.ref_name }}
--notes "[Changelog](https://github.com/Tyrrrz/DiscordChatExporter/blob/master/Changelog.md)"
--notes "[Changelog](${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md)"
--verify-tag
notify:
@ -147,5 +147,5 @@ jobs:
Content-Type: application/json; charset=UTF-8
body: |
{
"content": "**DiscordChatExporter** new version released!\nVersion: `${{ github.ref_name }}`\nChangelog: <https://github.com/Tyrrrz/DiscordChatExporter/blob/${{ github.ref_name }}/Changelog.md>"
"content": "**${{ github.event.repository.name }}** new version released!\nVersion: `${{ github.ref_name }}`\nChangelog: <${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md>"
}
Loading…
Cancel
Save