Skip to content

Start Cron jobs

Start Cron jobs #521

Workflow file for this run

name: Start Cron jobs
on:
# NOTE: Schedule is only run on the latest commit of the default branch,
# so we need to schedule Cron Jobs for all branches here
schedule:
# Run V 0 nightly every weekday at 01:00
- cron: "0 1 * * 1-5"
# Run V -1 nightly every weekday at 02:00
- cron: "0 2 * * 1-5"
jobs:
crons:
runs-on: ubuntu-22.04
strategy:
fail-fast: false
matrix:
include:
- name: "Nightly for MetalK8s 129.0"
cron: "0 1 * * 1-5"
branch: "development/129.0"
workflow: "nightly.yaml"
- name: "Nightly for MetalK8s 128.0"
cron: "0 2 * * 1-5"
branch: "development/128.0"
workflow: "nightly.yaml"
steps:
- name: Checkout
if: github.event.schedule == matrix.cron
uses: actions/checkout@v4
- name: Run ${{ matrix.name }}
if: github.event.schedule == matrix.cron
env:
GITHUB_TOKEN: ${{ secrets.GIT_ACCESS_TOKEN }}
run: gh workflow run ${{ matrix.workflow }} --ref=${{ matrix.branch }}