Commit d2cbbca 1 parent b437f1e commit d2cbbca Copy full SHA for d2cbbca
File tree 2 files changed +7
-13
lines changed
2 files changed +7
-13
lines changed Original file line number Diff line number Diff line change 40
40
python-version : ' 3.12'
41
41
- name : file_sync test
42
42
run : python ./private/test/file_sync_test.py
43
- slack_test_fail :
44
- runs-on : ubuntu-latest
45
- steps :
46
- - name : fail step
47
- run : exit 1
Original file line number Diff line number Diff line change 8
8
types : [completed]
9
9
10
10
jobs :
11
- notify :
11
+ notify_failure :
12
12
runs-on : ubuntu-latest
13
13
steps :
14
- - name : Notify Build Cop Slack
15
- if : github.event.workflow_run.conclusion == 'failure' || github.event.workflow_run.conclusion == 'timed_out'
14
+ - name : \ #buildcop Notify Build Failure
15
+ if : ${{ github.event.workflow_run.conclusion }} == 'failure' || ${{ github.event.workflow_run.conclusion }} == 'timed_out'
16
16
uses : ravsamhq/notify-slack-action@v2
17
17
with :
18
18
status : ${{ github.event.workflow_run.conclusion }}
19
19
notification_title : >
20
- ${{github.event.workflow_run.name}} failed on ${{github.event.workflow_run.head_branch} } -
21
- <${{github.server_url}}/${{github.repository}}/actions/runs/${{github.event.workflow_run.id} }|View Failure>
20
+ ${{github.event.workflow_run.name}} ${{ github.event.workflow_run.conclusion }} on {branch } -
21
+ <{workflow_url }|View Failure>
22
22
message_format : |
23
- Result: ${{github.event.workflow_run.conclusion}}
24
23
Run: ${{github.event.workflow_run.run_number}}
25
- Branch: <${{github.server_url}}/${{github.repository}}/tree/${{github.event.workflow_run.head_branch}}|${{github.repository}}/${{github.event.workflow_run.head_branch} }>
26
- footer : " Repository: <${{github.server_url}}/${{github.repository}}|${{github.repository} }>"
24
+ Branch: <{branch_url}|{branch }>
25
+ footer : " Repository: <{repo_url}|{repo }>"
27
26
env :
28
27
SLACK_WEBHOOK_URL : ${{ secrets.SLACK_BUILDCOP_URL }}
You can’t perform that action at this time.
0 commit comments