From 3319b4734d925d37297486e19105af8c7896ac44 Mon Sep 17 00:00:00 2001 From: Tyrrrz <1935960+Tyrrrz@users.noreply.github.com> Date: Sat, 27 May 2023 23:49:05 +0300 Subject: [PATCH] Use event data to reference repo info in workflows --- .github/workflows/main.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 98619eba..88c5a723 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -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: " + "content": "**${{ github.event.repository.name }}** new version released!\nVersion: `${{ github.ref_name }}`\nChangelog: <${{ github.event.repository.html_url }}/blob/${{ github.ref_name }}/Changelog.md>" } \ No newline at end of file