-
Notifications
You must be signed in to change notification settings - Fork 45
40 lines (37 loc) · 1.26 KB
/
crons.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
30
31
32
33
34
35
36
37
38
39
40
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:
# these helper comments are needed by the dev branch workflow
# please do not edit them unless you're changing the version as well
# current=129.0
- name: "Nightly for MetalK8s 129.0"
cron: "0 1 * * 1-5"
branch: "development/129.0"
workflow: "nightly.yaml"
# old=128.0
- 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 }}