chore: example of a Aspect Workflows cron job on GitHub Actions #2
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
name: Aspect Workflows | |
on: | |
# Run this workflows on a cron schedule | |
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule | |
push: | |
branches: [main] | |
pull_request: | |
branches: [main] | |
schedule: | |
- cron: "0 8 * * *" | |
# Allow this to be triggered manually via the GitHub UI Actions tab | |
workflow_dispatch: | |
jobs: | |
aspect-workflows: | |
name: Aspect Workflows (cron) | |
uses: ./.github/workflows/.aspect-workflows-reusable.yaml | |
with: | |
aspect-config: .aspect/workflows/config-cron.yaml | |
queue: aspect-small |