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
|
- name: Send Discord notification
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
MESSAGE='${{ inputs.message }}'
|
||||||
|
|
||||||
if [ -n "${{ inputs.color }}" ]; then
|
if [ -n "${{ inputs.color }}" ]; then
|
||||||
# Send as embed with color
|
# Send as embed with color
|
||||||
PAYLOAD=$(jq -n \
|
PAYLOAD=$(jq -n \
|
||||||
--arg content "${{ inputs.message }}" \
|
--arg content "$MESSAGE" \
|
||||||
--arg username "${{ inputs.username }}" \
|
--arg username "${{ inputs.username }}" \
|
||||||
--arg avatar "${{ inputs.avatar_url }}" \
|
--arg avatar "${{ inputs.avatar_url }}" \
|
||||||
--arg color "${{ inputs.color }}" \
|
--arg color "${{ inputs.color }}" \
|
||||||
@@ -42,7 +44,7 @@ runs:
|
|||||||
else
|
else
|
||||||
# Send as simple message
|
# Send as simple message
|
||||||
PAYLOAD=$(jq -n \
|
PAYLOAD=$(jq -n \
|
||||||
--arg content "${{ inputs.message }}" \
|
--arg content "$MESSAGE" \
|
||||||
--arg username "${{ inputs.username }}" \
|
--arg username "${{ inputs.username }}" \
|
||||||
--arg avatar "${{ inputs.avatar_url }}" \
|
--arg avatar "${{ inputs.avatar_url }}" \
|
||||||
'{
|
'{
|
||||||
|
|||||||
6
.github/workflows/steam_alpha.yml
vendored
6
.github/workflows/steam_alpha.yml
vendored
@@ -83,7 +83,7 @@ jobs:
|
|||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
echo "branch=$(git branch --show-current)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
uses: ./.github/actions/discord-webhook
|
uses: ./.github/actions/discord-webhook
|
||||||
@@ -165,7 +165,7 @@ jobs:
|
|||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
echo "branch=$(git branch --show-current)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
uses: ./.github/actions/discord-webhook
|
uses: ./.github/actions/discord-webhook
|
||||||
@@ -221,7 +221,7 @@ jobs:
|
|||||||
id: vars
|
id: vars
|
||||||
run: |
|
run: |
|
||||||
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
|
||||||
echo "branch=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_OUTPUT
|
echo "branch=$(git branch --show-current)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- name: Discord notification
|
- name: Discord notification
|
||||||
uses: ./.github/actions/discord-webhook
|
uses: ./.github/actions/discord-webhook
|
||||||
|
|||||||
Reference in New Issue
Block a user