Skip to content

Commit

Permalink
ci(build): add DMS check in
Browse files Browse the repository at this point in the history
If a repository isn't active, scheduled workflows are turned off and
you're not really notified. Add a call to DMS so we can be alerted if
the workflow stops running
  • Loading branch information
mloberg committed Oct 13, 2023
1 parent 15c7532 commit dc3e311
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,8 @@ on:
branches:
- main
schedule:
# every weekday
- cron: '0 0 * * 1-5'
# every sunday (no-cache)
- cron: '0 0 * * 0'
- cron: '0 0 * * 1-6'
- cron: '0 0 * * 0' # runs with no-cache
workflow_dispatch:
inputs:
no-cache:
Expand All @@ -29,7 +27,7 @@ jobs:
dockerfiles: ${{ steps.scan.outputs.dockerfiles }}
build:
runs-on: ubuntu-latest
needs: [setup]
needs: setup
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -59,3 +57,9 @@ jobs:
cache-from: type=registry,ref=${{ steps.meta.outputs.cache }}
cache-to: type=inline
no-cache: ${{ github.event.schedule == '0 0 * * 0' || (github.event_name == 'workflow_dispatch' && inputs.no-cache) }}
notify:
runs-on: ubuntu-latest
needs: build
if: github.event_name != 'pull_request'
steps:
- run: curl ${{ secrets.DMS_URL }}

0 comments on commit dc3e311

Please sign in to comment.