Skip to content

Commit

Permalink
chore: example of a Aspect Workflows cron job on GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
gregmagolan committed Dec 4, 2024
1 parent 4e9f0e8 commit a0452d4
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .aspect/workflows/config-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# Set `queue` to the `queue` of the desired runner group to run this job on
queue: aspect-default
tasks:
- test:
targets:
- //docs:update_test
18 changes: 18 additions & 0 deletions .github/workflows/aspect-workflows-cron.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Aspect Workflows

on:
# Run this workflows on a cron schedule
# https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#schedule
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

0 comments on commit a0452d4

Please sign in to comment.