diff options
author | Yasin <a.piri@hotmail.de> | 2023-08-15 20:56:54 +0200 |
---|---|---|
committer | Yasin <a.piri@hotmail.de> | 2023-08-15 20:56:54 +0200 |
commit | ada364f64b84065b1de8d6ce87972df66987e541 (patch) | |
tree | e8bbf0b427c8032ab2c512b48ca49685b812bba6 /.github/workflows/buildrelease.yml | |
parent | 5fb9f5bdb98c919433d6d9319074c5fa0469eb61 (diff) | |
download | Skyblocker-ada364f64b84065b1de8d6ce87972df66987e541.tar.gz Skyblocker-ada364f64b84065b1de8d6ce87972df66987e541.tar.bz2 Skyblocker-ada364f64b84065b1de8d6ce87972df66987e541.zip |
Update buildrelease.yml
use flag 4 instead of adding <> on every link
Diffstat (limited to '.github/workflows/buildrelease.yml')
-rw-r--r-- | .github/workflows/buildrelease.yml | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/.github/workflows/buildrelease.yml b/.github/workflows/buildrelease.yml index 2428e2b5..fde5785b 100644 --- a/.github/workflows/buildrelease.yml +++ b/.github/workflows/buildrelease.yml @@ -82,7 +82,7 @@ jobs: ' ORS='\n' <<< "$changelog") # Format the modified_changelog by removing "@" characters and enclosing URLs in "<>" - modified_changelog=$(echo "$modified_changelog" | sed -e 's/@//g' -e 's|https\?://[^[:space:]]*|<\0>|g') + # modified_changelog=$(echo "$modified_changelog" | sed -e 's/@//g' -e 's|https\?://[^[:space:]]*|<\0>|g') # Store the modified_changelog in the CHANGELOG variable CHANGELOG=$(echo -n "$modified_changelog") @@ -124,18 +124,18 @@ jobs: echo "::set-output name=value::${GITHUB_REF#refs/tags/}" - name: Discord notification - env: - DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} - uses: Ilshidur/action-discord@master - with: - args: | - "<@&1134565945482948638>" - "## Skyblocker ${{ steps.version_tag.outputs.value }}" - "" - "${{ steps.read_changelog.outputs.changelog_discord }}" - "" - ":inbox_tray: Download latest version on Modrinth or Github:" - "<:modrinth:900697862206287882> <${{ steps.modrinth.outputs.url }}>" - "<:github:900697885706952725> <${{ steps.uploadrelease.outputs.url }}>" - "" - "<https://hysky.de/>" + shell: bash + run: | + OUTPUT=" + <@&1134565945482948638> + ## Skyblocker ${{ steps.version_tag.outputs.value }} + + ${{ steps.read_changelog.outputs.changelog_discord }} + + :inbox_tray: Download latest version on Modrinth or Github: + <:modrinth:900697862206287882> ${{ steps.modrinth.outputs.url }} + <:github:900697885706952725> ${{ steps.uploadrelease.outputs.url }} + + https://hysky.de/" + + curl -H "Content-Type: application/json" -d '{"content":"'"${OUTPUT//$'\n'/\\n}"'", "flags": 4}' "${{ secrets.DISCORD_WEBHOOK }}"
\ No newline at end of file |