Skip to content

Update WinGet Packages #447

Update WinGet Packages

Update WinGet Packages #447

name: Update WinGet Packages
on:
workflow_dispatch:
schedule:
- cron: '0 3 * * *' # Scheduled to run daily at 03:00
jobs:
update:
name: Update package ${{ matrix.id }}
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
include:
- id: "Typst.Typst"
repo: "typst/typst"
url: "https://github.com/typst/typst/releases/download/v{VERSION}/typst-x86_64-pc-windows-msvc.zip"
- id: "Casey.Just"
repo: "casey/just"
url: "https://github.com/casey/just/releases/download/{VERSION}/just-{VERSION}-x86_64-pc-windows-msvc.zip"
- id: "michidk.vscli"
repo: "michidk/vscli"
url: "https://github.com/michidk/vscli/releases/download/v{VERSION}/vscli-x86_64-pc-windows-msvc.zip"
- id: "glzr-io.glazewm"
repo: "glzr-io/glazewm"
url: "https://github.com/glzr-io/glazewm/releases/download/v{VERSION}/glazewm-{VERSION}.exe"
- id: "glzr-io.zebar"
repo: "glzr-io/zebar"
url: "https://github.com/glzr-io/zebar/releases/download/v{VERSION}/zebar-v{VERSION}-opt1-x64.msi"
steps:
- name: Update Packages
uses: michidk/winget-updater@latest
with:
komac-version: "2.6.0"
komac-token: ${{ secrets.KOMAC_TOKEN }}
identifier: ${{ matrix.id }}
repo: ${{ matrix.repo }}
url: ${{ matrix.url }}
cleanup:
name: Cleanup branches
needs: update # Not necessarily needed as PRs don't get closed that quick but still nice to have it in order
runs-on: ubuntu-24.04
steps:
- name: Run Komac
uses: michidk/run-komac@latest
with:
komac-version: "2.6.0"
args: 'cleanup --only-merged --token=${{ secrets.KOMAC_TOKEN }}'