forked from fedimint/fedimint
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.05 KB
/
daily.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
on:
schedule:
- cron: '30 5,17 * * *'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
name: Daily check
jobs:
audit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions-rs/audit-check@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
notifications:
# if: github.ref == 'refs/heads/master'
if: always()
name: "Notifications"
timeout-minutes: 1
runs-on: ubuntu-22.04
needs: [ check-unused-dependencies, audit ]
steps:
- name: Discord notifications on failure
# https://stackoverflow.com/a/74562058/134409
if: ${{ always() && contains(needs.*.result, 'failure') }}
# https://github.com/marketplace/actions/actions-status-discord
uses: sarisia/actions-status-discord@v1
with:
webhook: ${{ secrets.DISCORD_WEBHOOK }}
# current job is a success, but that's not what we're interested in
status: failure