aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/buildrelease.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/buildrelease.yml')
-rw-r--r--.github/workflows/buildrelease.yml14
1 files changed, 8 insertions, 6 deletions
diff --git a/.github/workflows/buildrelease.yml b/.github/workflows/buildrelease.yml
index d79c40e8..34807542 100644
--- a/.github/workflows/buildrelease.yml
+++ b/.github/workflows/buildrelease.yml
@@ -40,6 +40,7 @@ jobs:
shell: bash
run: |
CHANGELOG=$(sed '/___/Q' CHANGELOG.md)
+ CHANGELOG=$(echo "$CHANGELOG" | sed 1d)
echo "Changelog:\n$CHANGELOG"
changelog="${CHANGELOG}"
@@ -80,11 +81,12 @@ jobs:
CHANGELOG=$(echo -n "$modified_changelog")
fi
- CHANGELOG="${CHANGELOG//'%'/'%25'}"
- CHANGELOG="${CHANGELOG//$'\n'/'%0A'}"
- CHANGELOG="${CHANGELOG//$'\r'/'%0D'}"
+ CHANGELOG-discord="${CHANGELOG//'%'/'%25'}"
+ CHANGELOG-discord="${CHANGELOG//$'\n'/'%0A'}"
+ CHANGELOG-discord="${CHANGELOG//$'\r'/'%0D'}"
- echo "::set-output name=changelog::$CHANGELOG"
+ echo "::set-output name=changelog::$changelog"
+ echo "::set-output name=changelog-discord::$CHANGELOG-discord"
- uses: actions/github-script@v2
id: fname
@@ -121,12 +123,12 @@ jobs:
uses: Ilshidur/action-discord@master
with:
args: |
- "@here"
+ "@Update-Notification"
"Skyblocker ${{ steps.version_tag.outputs.value }}"
""
"Changelog"
"```md"
- "${{ steps.read_changelog.outputs.changelog }}"
+ "${{ steps.read_changelog.outputs.changelog-discord }}"
"```"
":inbox_tray: Download latest version on Modrinth or Github:"
"<:modrinth:900697862206287882> <${{ steps.modrinth.outputs.url }}>"