-
Notifications
You must be signed in to change notification settings - Fork 70
37 lines (33 loc) · 924 Bytes
/
check.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: Scheduled tests
on:
workflow_dispatch:
inputs:
silent:
description: "Silence Slack notifications"
type: boolean
default: false
schedule:
- cron: '0 5 * * 1-5'
concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true
jobs:
check:
uses: ./.github/workflows/_check-release.yml
with:
fail-fast: false
notify-failed:
runs-on: ubuntu-latest
# Do not run on success
if: always() && !(inputs.silent) && contains(needs.*.result, 'failure')
needs: [ check ]
steps:
- name: Notifying about failed tests!
uses: slackapi/[email protected]
env:
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SCHEDULED_TESTS_FAILURE_WEBHOOK_URL }}
with:
payload: |
{
"url": "${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
}