Skip to content

Commit 6521788

Browse files
committed
Mute slack notifications
1 parent e1a830d commit 6521788

File tree

1 file changed

+28
-28
lines changed

1 file changed

+28
-28
lines changed

.github/workflows/release.yml

+28-28
Original file line numberDiff line numberDiff line change
@@ -341,31 +341,31 @@ jobs:
341341
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
342342
run: hub release delete ${{ needs.create_release.outputs.tag }}
343343

344-
send_slack_notification:
345-
name: Notify the team Slack channel about this release
346-
needs: [create_release, publish_release]
347-
runs-on: ubuntu-latest
348-
if: ${{ always() }}
349-
steps:
350-
- name: Produce action-slack-notify variables
351-
run: |
352-
status="${{ needs.publish_release.outputs.status }}"
353-
release="${{ needs.create_release.outputs.tag }}"
354-
if [ "$status" == "success" ]; then
355-
SLACK_STATUS="success"
356-
SLACK_MESSAGE=":rocket: Published release $release."
357-
else
358-
SLACK_STATUS="failure"
359-
SLACK_MESSAGE=":x: Release $release *FAILED*."
360-
fi
361-
cat <<EOF >> $GITHUB_ENV
362-
SLACK_STATUS=$SLACK_STATUS
363-
SLACK_MESSAGE=$SLACK_MESSAGE
364-
EOF
365-
366-
- name: Send notification
367-
uses: eugene-babichenko/slack-notifier@v1
368-
with:
369-
webhook: ${{ secrets.SLACK_WEBHOOK }}
370-
status: ${{ env.SLACK_STATUS }}
371-
text: ${{ env.SLACK_MESSAGE }}
344+
# send_slack_notification:
345+
# name: Notify the team Slack channel about this release
346+
# needs: [create_release, publish_release]
347+
# runs-on: ubuntu-latest
348+
# if: ${{ always() }}
349+
# steps:
350+
# - name: Produce action-slack-notify variables
351+
# run: |
352+
# status="${{ needs.publish_release.outputs.status }}"
353+
# release="${{ needs.create_release.outputs.tag }}"
354+
# if [ "$status" == "success" ]; then
355+
# SLACK_STATUS="success"
356+
# SLACK_MESSAGE=":rocket: Published release $release."
357+
# else
358+
# SLACK_STATUS="failure"
359+
# SLACK_MESSAGE=":x: Release $release *FAILED*."
360+
# fi
361+
# cat <<EOF >> $GITHUB_ENV
362+
# SLACK_STATUS=$SLACK_STATUS
363+
# SLACK_MESSAGE=$SLACK_MESSAGE
364+
# EOF
365+
366+
# - name: Send notification
367+
# uses: eugene-babichenko/slack-notifier@v1
368+
# with:
369+
# webhook: ${{ secrets.SLACK_WEBHOOK }}
370+
# status: ${{ env.SLACK_STATUS }}
371+
# text: ${{ env.SLACK_MESSAGE }}

0 commit comments

Comments
 (0)