nix-community.nixvim/.github/workflows/update-other.yml
Matt Sturgeon 30c2292b29
ci/update-other: use a job matrix
This will allow us to add/remove other branches to schedule updates for
more easily.
2025-01-25 18:42:17 +00:00

27 lines
629 B
YAML

name: Schedule update for other branches
on:
# Runs every Saturday at noon
schedule:
- cron: "0 12 * * SAT"
# Allow running workflows
permissions:
actions: write
jobs:
update:
name: Trigger updates for nixvim's stable branches
runs-on: ubuntu-latest
strategy:
matrix:
branches:
- nixos-24.11
steps:
- name: Update ${{ matrix.branches }}
env:
GH_TOKEN: ${{ github.token }}
repo: ${{ github.repository }}
branch: ${{ matrix.branches }}
run: |
gh --repo "$repo" workflow run \
update.yml --ref "$branch"