ci/update-other: use a job matrix

This will allow us to add/remove other branches to schedule updates for
more easily.
This commit is contained in:
Matt Sturgeon 2025-01-25 18:39:02 +00:00
parent 5121c309b3
commit 30c2292b29
No known key found for this signature in database
GPG key ID: 4F91844CED1A8299

View file

@ -12,11 +12,16 @@ jobs:
update: update:
name: Trigger updates for nixvim's stable branches name: Trigger updates for nixvim's stable branches
runs-on: ubuntu-latest runs-on: ubuntu-latest
strategy:
matrix:
branches:
- nixos-24.11
steps: steps:
- name: Update nixos-24.11 - name: Update ${{ matrix.branches }}
env: env:
GH_TOKEN: ${{ github.token }} GH_TOKEN: ${{ github.token }}
repo: ${{ github.repository }} repo: ${{ github.repository }}
branch: ${{ matrix.branches }}
run: | run: |
gh --repo "$repo" workflow run \ gh --repo "$repo" workflow run \
update.yml --ref nixos-24.11 update.yml --ref "$branch"