From 30c2292b293e31f419ea52a715abe21ac21e6873 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sat, 25 Jan 2025 18:39:02 +0000 Subject: [PATCH] ci/update-other: use a job matrix This will allow us to add/remove other branches to schedule updates for more easily. --- .github/workflows/update-other.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/update-other.yml b/.github/workflows/update-other.yml index 72acbe0a..d035e0f2 100644 --- a/.github/workflows/update-other.yml +++ b/.github/workflows/update-other.yml @@ -12,11 +12,16 @@ jobs: update: name: Trigger updates for nixvim's stable branches runs-on: ubuntu-latest + strategy: + matrix: + branches: + - nixos-24.11 steps: - - name: Update nixos-24.11 + - name: Update ${{ matrix.branches }} env: GH_TOKEN: ${{ github.token }} repo: ${{ github.repository }} + branch: ${{ matrix.branches }} run: | gh --repo "$repo" workflow run \ - update.yml --ref nixos-24.11 + update.yml --ref "$branch"