File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4444 run : |
4545 # shellcheck disable=SC2046
4646 pylint $(git ls-files '*.py' ':!:docs/source/*')
47+
48+ - name : Notify Slack on failure
49+ if : (failure() || cancelled()) && github.ref_name == github.event.repository.default_branch
50+ uses : senzing-factory/build-resources/slack-failure-notification@v4
51+ with :
52+ job-status : ${{ job.status }}
53+ slack-channel : ${{ secrets.SLACK_CHANNEL }}
54+ slack-bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
55+ additional-info : " Python: ${{ matrix.python-version }}"
Original file line number Diff line number Diff line change @@ -117,3 +117,12 @@ jobs:
117117 with :
118118 name : " coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
119119 path : " coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
120+
121+ - name : Notify Slack on failure
122+ if : (failure() || cancelled()) && github.event_name == 'schedule'
123+ uses : senzing-factory/build-resources/slack-failure-notification@v4
124+ with :
125+ job-status : ${{ job.status }}
126+ slack-channel : ${{ secrets.SLACK_CHANNEL }}
127+ slack-bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
128+ additional-info : " SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"
Original file line number Diff line number Diff line change @@ -106,3 +106,12 @@ jobs:
106106 with :
107107 name : " coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
108108 path : " coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
109+
110+ - name : Notify Slack on failure
111+ if : (failure() || cancelled()) && (github.ref_name == github.event.repository.default_branch || github.event_name == 'schedule')
112+ uses : senzing-factory/build-resources/slack-failure-notification@v4
113+ with :
114+ job-status : ${{ job.status }}
115+ slack-channel : ${{ secrets.SLACK_CHANNEL }}
116+ slack-bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
117+ additional-info : " SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"
Original file line number Diff line number Diff line change @@ -111,3 +111,12 @@ jobs:
111111 with :
112112 name : " coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
113113 path : " coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
114+
115+ - name : Notify Slack on failure
116+ if : (failure() || cancelled()) && github.event_name == 'schedule'
117+ uses : senzing-factory/build-resources/slack-failure-notification@v4
118+ with :
119+ job-status : ${{ job.status }}
120+ slack-channel : ${{ secrets.SLACK_CHANNEL }}
121+ slack-bot-token : ${{ secrets.SLACK_BOT_TOKEN }}
122+ additional-info : " SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"
You can’t perform that action at this time.
0 commit comments