Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send Slack message if the CI fails on main branch #1232

Merged
merged 46 commits into from
Jun 1, 2023
Merged
Changes from 3 commits
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
708a6b6
Slack when main CI fails
desistefanova Mar 24, 2023
3cec2b6
Fix the CI Slack job
desistefanova Mar 28, 2023
46fd9e3
Disable slack messaging
desistefanova Mar 28, 2023
836401b
Merge branch 'main' into ds/slack_when_main_ci_fails
desistefanova May 22, 2023
a450446
Update slack web hook url
desistefanova May 22, 2023
33d64b8
Fix CI dependancies
desistefanova May 22, 2023
ff4c7e3
Fix action dependencies
desistefanova May 25, 2023
ee723d3
Merge branch 'main' into ds/slack_when_main_ci_fails
desistefanova May 25, 2023
7af2332
slack when on failure or cancelled
desistefanova May 25, 2023
8908845
slack if no success
desistefanova May 25, 2023
c814e9d
fix slack action status param
desistefanova May 25, 2023
47fb818
fix slack action status param
desistefanova May 25, 2023
7dc783f
test slack message
desistefanova May 25, 2023
f0f9e26
fix channel name
desistefanova May 25, 2023
f7dfd0e
ravsamhq/notify-slack-action
desistefanova May 26, 2023
82e81bf
notify on cancel
desistefanova May 26, 2023
c0af4e7
format the slack message
desistefanova May 26, 2023
ed9a576
test
desistefanova May 26, 2023
32b022b
slack on cancelled() || failure()
desistefanova May 26, 2023
6a43fee
update coverallsapp version
desistefanova May 26, 2023
0740bfb
add more slack actions
desistefanova May 26, 2023
9103f38
Merge branch 'main' into ds/slack_when_main_ci_fails
desistefanova May 26, 2023
38d1209
slack only on failure
desistefanova May 26, 2023
e10c1c3
Slack only once at the end
desistefanova May 26, 2023
41d1e58
try technote-space
desistefanova May 26, 2023
f2ae5ba
print env.WORKFLOW_CONCLUSION
desistefanova May 26, 2023
5a25498
slack message improved
desistefanova May 26, 2023
976ccdc
fix expressions
desistefanova May 26, 2023
8115e0c
fixed brackets
desistefanova May 26, 2023
d553fdc
github.event.head_commit.message
desistefanova May 26, 2023
fdb032d
try to format slack message
desistefanova May 29, 2023
1376bc1
Fix errors in slack.yml
desistefanova May 29, 2023
949e503
Fix config path
desistefanova May 29, 2023
718d0fd
Fix config path
desistefanova May 29, 2023
aaba200
Test message format
desistefanova May 29, 2023
9184390
Set direct message
desistefanova May 29, 2023
cd9bdff
Fix message format
desistefanova May 29, 2023
f8cc8dd
delete config
desistefanova May 29, 2023
0eb22c5
send a message only for main branch
desistefanova May 29, 2023
b87fc10
Fix the comments
desistefanova May 29, 2023
8702929
Fix the condition for main branch
desistefanova May 29, 2023
c2ac61b
test failure condition vs cancelled
desistefanova May 29, 2023
0d51335
slack only for main branch
desistefanova May 29, 2023
28e1b79
Code review changes
desistefanova May 30, 2023
35ade83
use hash for actions
desistefanova May 31, 2023
faa5053
Fix hash actions
desistefanova May 31, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -553,3 +553,18 @@ jobs:

- name: Output Coveralls response
run: echo ${{ steps.publish-coverage.outputs.coveralls-api-result }}

slack-on-fail:
needs:
- cleanup-matrix
runs-on: ubuntu-latest
steps:
- name: Slack on fail
id: send-slack-message
if: false #failure() && ${{ github.head_ref == "" }}
uses: act10ns/[email protected]
with:
webhook-url: ${{ secrets.SLACK_WEBHOOK_URL }}
desistefanova marked this conversation as resolved.
Show resolved Hide resolved
status: ${{ job.status }}
channel: '#realm-dart-chat'
message: CI actions failed on main branch