Skip to content

Commit b973c84

Browse files
authored
Merge pull request #9 from bronxbot/dev
> __**THE MODERN UPDATE**__ > **SLASH COMMANDS** > - **THE BAZAAR** > - Buy bazaar stock (`.bazaar`) to get cheaper deals on OP items in the bazaar shop! > - Bazaar stock value depends on the number of people who use the command, and the number of people who buy stuff from the bazaar > - Fixed an instance where winning roulette would give you only your money back
2 parents 9f530b9 + f5298cf commit b973c84

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/discord.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ jobs:
1010
steps:
1111
- name: Send Discord Embed via Curl
1212
run: |
13-
# Process the commit message to preserve formatting
14-
MESSAGE=$(echo '${{ github.event.head_commit.message }}' | jq -Rs . | sed 's/^"//;s/"$//')
13+
# Get the raw commit message and properly escape it
14+
RAW_MESSAGE=$(git log -1 --pretty=%B)
15+
ESCAPED_MESSAGE=$(echo "$RAW_MESSAGE" | jq -Rs . | sed 's/^"//;s/"$//')
1516
1617
PAYLOAD=$(jq -n --arg author "${{ github.actor }}" \
1718
--arg author_avatar "${{ github.actor_avatar_url }}" \
18-
--arg message "$MESSAGE" \
19+
--arg message "$ESCAPED_MESSAGE" \
1920
--arg url "${{ github.event.head_commit.url }}" \
2021
--arg timestamp "${{ github.event.head_commit.timestamp }}" \
2122
--arg version "${{ secrets.VERSION }}" \

0 commit comments

Comments
 (0)