Aspect Workflows Warming #493
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 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 |