File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5050
5151 - name : Run tests
5252 run : bundle exec rspec spec
53-
54- notify_on_failure :
55- if : failure()
56- needs : [lint, test]
57- uses : tulibraries/.github/.github/workflows/slack-notify.yml@main
58- with :
59- repo : ${{ github.repository }}
60- run_id : ${{ github.run_id }}
61- workflow : ${{ github.workflow }}
62- secrets : inherit
Original file line number Diff line number Diff line change 1+ name : Workflow Failure Notify
2+
3+ permissions :
4+ contents : read
5+
6+ on :
7+ workflow_run :
8+ workflows : ["Lint and Test"]
9+ types : [completed]
10+
11+ jobs :
12+ notify_on_failure :
13+ if : ${{ github.event.workflow_run.conclusion == 'failure' }}
14+ uses : tulibraries/.github/.github/workflows/slack-notify.yml@main
15+ with :
16+ repo : ${{ github.event.workflow_run.repository.full_name }}
17+ run_id : ${{ github.event.workflow_run.id }}
18+ workflow : ${{ github.event.workflow_run.name }}
19+ secrets : inherit
You can’t perform that action at this time.
0 commit comments