fix steam-alpha discord message
This commit is contained in:
6
.github/actions/discord-webhook/action.yml
vendored
6
.github/actions/discord-webhook/action.yml
vendored
@@ -26,10 +26,12 @@ runs:
|
||||
- name: Send Discord notification
|
||||
shell: bash
|
||||
run: |
|
||||
MESSAGE='${{ inputs.message }}'
|
||||
|
||||
if [ -n "${{ inputs.color }}" ]; then
|
||||
# Send as embed with color
|
||||
PAYLOAD=$(jq -n \
|
||||
--arg content "${{ inputs.message }}" \
|
||||
--arg content "$MESSAGE" \
|
||||
--arg username "${{ inputs.username }}" \
|
||||
--arg avatar "${{ inputs.avatar_url }}" \
|
||||
--arg color "${{ inputs.color }}" \
|
||||
@@ -42,7 +44,7 @@ runs:
|
||||
else
|
||||
# Send as simple message
|
||||
PAYLOAD=$(jq -n \
|
||||
--arg content "${{ inputs.message }}" \
|
||||
--arg content "$MESSAGE" \
|
||||
--arg username "${{ inputs.username }}" \
|
||||
--arg avatar "${{ inputs.avatar_url }}" \
|
||||
'{
|
||||
|
||||
Reference in New Issue
Block a user