Skip to content

Commit ed87865

Browse files
committed
Update CI workflow to report status to Slack
1 parent 1882f03 commit ed87865

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,18 @@ jobs:
2626
ruby-version: 3.3.0
2727
- name: Install dependencies
2828
run: bundle install
29+
2930
- name: Run tests
30-
run: bundle exec rspec test/integration
31+
run: bundle exec rspec test/integration
32+
33+
- name: Report Status
34+
if: always()
35+
uses: ravsamhq/notify-slack-action@v1
36+
with:
37+
status: ${{ job.status }}
38+
notify_when: "failure,warnings"
39+
notification_title: "Repo: *{repo}*"
40+
message_format: "{emoji} *{status_message}* in <{repo_url}|{repo}@{branch}> on <{commit_url}|{commit_sha}>"
41+
footer: "<{run_url}|View Full Run on GitHub>"
42+
env:
43+
SLACK_WEBHOOK_URL: ${{ secrets.ACTION_MONITORING_SLACK }}

0 commit comments

Comments
 (0)