generated from bazel-contrib/rules-template
-
-
Notifications
You must be signed in to change notification settings - Fork 61
29 lines (26 loc) · 1.08 KB
/
aspect-workflows-warming.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Aspect Workflows Warming
on:
# Run the workflows on a cron schedule to periodically create an up-to-date warming archive
# 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:
warming-archive:
name: Aspect Workflows Warming
runs-on: [self-hosted, aspect-workflows, aspect-warming]
env:
ASPECT_WORKFLOWS_BIN_DIR: /etc/aspect/workflows/bin
steps:
- name: Workflows environment
run: ${ASPECT_WORKFLOWS_BIN_DIR}/configure_workflows_env
- uses: actions/checkout@v4
- name: Agent health check
run: ${ASPECT_WORKFLOWS_BIN_DIR}/agent_health_check
- name: Create warming archive
uses: aspect-build/[email protected]
with:
task: warming
- name: Archive warming tars
run: ${ASPECT_WORKFLOWS_BIN_DIR}/warming_archive