Skip to content

Commit e8931c0

Browse files
committed
add else branch and revert slack notification
1 parent d69b19b commit e8931c0

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -68,20 +68,21 @@ jobs:
6868
if [ -z "$output" ]; then
6969
echo "Created bucket not found."
7070
exit 1
71+
else echo "Bucket with random name was found: $output"
7172
fi
7273
73-
# - name: Send a Slack notification
74-
# if: failure() || github.event_name != 'pull_request'
75-
# uses: ravsamhq/notify-slack-action@v2
76-
# with:
77-
# status: ${{ job.status }}
78-
# token: ${{ secrets.GITHUB_TOKEN }}
79-
# notification_title: "{workflow} has {status_message}"
80-
# message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
81-
# footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
82-
# notify_when: "failure"
83-
# env:
84-
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
74+
- name: Send a Slack notification
75+
if: failure() || github.event_name != 'pull_request'
76+
uses: ravsamhq/notify-slack-action@v2
77+
with:
78+
status: ${{ job.status }}
79+
token: ${{ secrets.GITHUB_TOKEN }}
80+
notification_title: "{workflow} has {status_message}"
81+
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
82+
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
83+
notify_when: "failure"
84+
env:
85+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
8586

8687
- name: Generate a Diagnostic Report
8788
if: failure()

0 commit comments

Comments
 (0)