Daily check #271
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: [self-hosted, linux] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Run cargo audit | |
run: | | |
nix flake update advisory-db || nix flake lock --update-input advisory-db | |
nix build -L .#ci.cargoAudit | |
notifications: | |
if: always() && github.repository == 'fedimint/fedimint' | |
name: "Notifications" | |
timeout-minutes: 1 | |
runs-on: [self-hosted, linux] | |
needs: [ 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 |