Skip to content

Schedule Builds

Schedule Builds #603

name: Schedule Builds
on:
# allow rebuilding manually
workflow_dispatch:
# pre-build sstate regularly
schedule:
- cron: '30 3 * * *'
jobs:
build:
name: Schedule Builds
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || vars.SCHEDULE_BUILDS }}
permissions:
# needed for triggering other workflows
actions: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- name: Check out the repository
uses: actions/checkout@v4
- name: Trigger master build
run: gh workflow run build --ref master
- name: Trigger wrynose build
run: gh workflow run build --ref wrynose
- name: Trigger scarthgap build
run: gh workflow run build --ref scarthgap