Skip to content

Commit

Permalink
Fix github deploy workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Swedz committed Aug 7, 2024
1 parent 6193a8d commit 402849c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,10 @@ jobs:
run: |
{
echo "MOD_CHANGELOG_TRIMMED<<EOF"
echo "$(echo "$MOD_CHANGELOG" | sed -E '/^\s*$/d; s#Full Changelog: (https?://[^\ ]+)#\[Full Changelog\](\1)#g')"
echo "$(echo "$MOD_CHANGELOG" | sed -E '/^\s*$/d; s#\*\*Full Changelog\*\*: (https?://[^\ ]+)#\[Full Changelog\](\1)#g' | sed -E ':a;N;$!ba;s/\r{0,1}\n/\\n/g')"
echo "EOF"
} >> $GITHUB_ENV
echo "RELEASE_TYPE_DISPLAY=${RELEASE_TYPE^}" >> $GITHUB_ENV
echo "EMBED_COLOR=$(if [ $RELEASE_TYPE == "release" ]; then echo 2336090; elif [ $RELEASE_TYPE == "beta" ]; then echo 15774258; else echo 15875907; fi)" >> $GITHUB_ENV
- name: Prepare Discord webhook JSON file
run: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/discord_message.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"embeds": [
{
"id": 722295639,
"title": "Release Published",
"title": "$RELEASE_TYPE_DISPLAY Published",
"description": "",
"url": "https://github.com/$GITHUB_REPOSITORY/releases/tag/$GITHUB_RELEASE_TAG_NAME",
"color": $EMBED_COLOR,
Expand Down

0 comments on commit 402849c

Please sign in to comment.