Skip to content

Commit b1d1860

Browse files
committed
ci: send a notification of failing tests on a schedule
1 parent 3529532 commit b1d1860

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,3 +81,12 @@ jobs:
8181
flags: ${{ matrix.python-version }}
8282
token: ${{ secrets.CODECOV_TOKEN }}
8383
verbose: true
84+
- name: Send notifications of failing tests
85+
if: failure() && github.ref == 'refs/heads/main'
86+
uses: slackapi/[email protected]
87+
with:
88+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
89+
webhook-type: webhook-trigger
90+
payload: |
91+
action_url: "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
92+
repository: ${{ github.repository }}

0 commit comments

Comments
 (0)