Use event data to reference repo info in workflows

This commit is contained in:
Tyrrrz 2023-05-27 23:49:05 +03:00
parent e052241713
commit 3319b4734d

View file

@ -128,7 +128,7 @@ jobs:
run: > run: >
gh release create ${{ github.ref_name }} DiscordChatExporter.Cli.zip DiscordChatExporter.zip gh release create ${{ github.ref_name }} DiscordChatExporter.Cli.zip DiscordChatExporter.zip
--title ${{ github.ref_name }} --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 --verify-tag
notify: notify:
@ -147,5 +147,5 @@ jobs:
Content-Type: application/json; charset=UTF-8 Content-Type: application/json; charset=UTF-8
body: | 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>"
} }