README: add daily schedule to example

This commit is contained in:
Cole Helbling 2021-10-19 09:45:38 -07:00 committed by Cole Helbling
parent e26f7bb412
commit 7c39594b7e
1 changed files with 3 additions and 2 deletions

View File

@ -11,7 +11,9 @@ An example GitHub Action workflow using this action would look like the followin
```yaml ```yaml
name: update-flake-lock name: update-flake-lock
on: on:
workflow_dispatch: workflow_dispatch: # allows manual triggering
schedule:
- cron: '0 0 * * *' # runs daily at 00:00
jobs: jobs:
lockfile: lockfile:
@ -23,4 +25,3 @@ jobs:
uses: DeterminateSystems/update-flake-lock@main uses: DeterminateSystems/update-flake-lock@main
``` ```
To have this workflow run on a recurring basis, see the [GitHub Actions documentation on the `schedule` key](https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule).