Cron actions workflow (marcolivierarsenault/moonraker-home-assistant)
The Cron actions workflow from marcolivierarsenault/moonraker-home-assistant, explained and optimized by Latchkey.
A
CI health: A - excellent
Run this on Latchkey for self-healing, caching, and up to 58% lower cost.
Grade your own workflow free or run it on Latchkey →What it does
This is the Cron actions workflow from the marcolivierarsenault/moonraker-home-assistant repository, a real project running GitHub Actions. It is shown here with attribution under its MIT license.
Below, Latchkey shows a faster, safer version produced by its optimization engine.
The workflow
workflow (.yml)
name: Cron actions
on:
schedule:
- cron: "0 0 * * *"
permissions:
contents: read
jobs:
validate:
runs-on: "ubuntu-latest"
name: Validate
steps:
- uses: "actions/checkout@v6"
- name: HACS validation
uses: "hacs/action@main"
with:
category: "integration"
ignore: brands
- name: Hassfest validation
uses: "home-assistant/actions/hassfest@master"
The same workflow, on Latchkey
Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.
name: Cron actions on: schedule: - cron: "0 0 * * *" permissions: contents: read jobs: validate: timeout-minutes: 30 runs-on: "ubuntu-latest" name: Validate steps: - uses: "actions/checkout@v6" - name: HACS validation uses: "hacs/action@main" with: category: "integration" ignore: brands - name: Hassfest validation uses: "home-assistant/actions/hassfest@master"
What changed
- Add a job timeout so a hung step cannot burn hours of runner time.
This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.