Skip to content

Commit 8a2aeb0

Browse files
committed
Fix failure message failure
1 parent eedc99d commit 8a2aeb0

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/actions/common/func.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ slack_format_docker_PR_message() {
415415
EOF
416416
}
417417

418-
slack_format_docker_PR_failed_message() {
418+
slack_format_failure_message() {
419419
header=$1
420420
workflow_url=$2
421421
footer=$3

.github/workflows/pre-merge.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ jobs:
110110
. ${GITHUB_WORKSPACE}/.github/actions/common/func.sh
111111
112112
echo "$image_urls" | slack_format_docker_image_urls_message "${{ inputs.release_tag }}" "$footer" \
113-
| curl -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
113+
| curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"

.github/workflows/release_publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ jobs:
151151
. ${GITHUB_WORKSPACE}/.github/actions/common/func.sh
152152
153153
slack_format_docker_PR_message "${{ steps.parse-release.outputs.release_version }}" "${{ steps.create-pr.outputs.pull-request-url }}" "$footer" \
154-
| curl -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
154+
| curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
155155
156156
- name: Send Failure Slack notification
157157
if: failure()
@@ -162,4 +162,4 @@ jobs:
162162
. ${GITHUB_WORKSPACE}/.github/actions/common/func.sh
163163
164164
slack_format_failure_message "Docker PR failed for Redis: ${{ steps.parse-release.outputs.release_version || 'unknown'}}" "$workflow_url" "$footer" \
165-
| curl -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"
165+
| curl -s --fail-with-body -d@- "${{ secrets.SLACK_WEB_HOOK_URL }}"

0 commit comments

Comments
 (0)