Skip to content
Latchkey

Afvalwijzer: Release workflow (xirixiz/homeassistant-afvalwijzer)

The Afvalwijzer: Release workflow from xirixiz/homeassistant-afvalwijzer, explained and optimized by Latchkey.

C

CI health: C - fair

Run this on Latchkey for self-healing, caching, and up to 58% lower cost.

Grade your own workflow free or run it on Latchkey →
Source: xirixiz/homeassistant-afvalwijzer.github/workflows/release.ymlLicense MITView source

What it does

This is the Afvalwijzer: Release workflow from the xirixiz/homeassistant-afvalwijzer 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: "Afvalwijzer: Release"

on:
  push:
    tags:
      - "*"

jobs:
  release:
    runs-on: "ubuntu-latest"
    steps:
      - uses: "actions/checkout@v7"
      - run: zip -r ../../afvalwijzer.zip . -x "tests/*" "*/__pycache__/*" "__pycache__/*"
        working-directory: custom_components/afvalwijzer
      - uses: "softprops/action-gh-release@v3"
        with:
          files: "afvalwijzer.zip"
          generate_release_notes: true
          prerelease: ${{ contains(github.ref_name, '-b') }}

The same workflow, on Latchkey

Removes redundant runs and caps runaway jobs. Added and changed lines are highlighted.

name: "Afvalwijzer: Release"
 
on:
  push:
    tags:
      - "*"
 
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true
 
jobs:
  release:
    timeout-minutes: 30
    runs-on: "ubuntu-latest"
    steps:
      - uses: "actions/checkout@v7"
      - run: zip -r ../../afvalwijzer.zip . -x "tests/*" "*/__pycache__/*" "__pycache__/*"
        working-directory: custom_components/afvalwijzer
      - uses: "softprops/action-gh-release@v3"
        with:
          files: "afvalwijzer.zip"
          generate_release_notes: true
          prerelease: ${{ contains(github.ref_name, '-b') }}
 

What changed

This workflow runs 1 job per trigger. On Latchkey the same minutes cost up to 58% less than GitHub-hosted, with zero queue time.