generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: example of a Aspect Workflows cron job on GitHub Actions
- Loading branch information
1 parent
4e9f0e8
commit a0452d4
Showing
2 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
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
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 |
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
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 |