12.nixvim/.github/workflows/update-other.yml
Matt Sturgeon 91e2e6fa03
ci/update-other: pass --repo to gh
In this case, we don't checkout the repo. Therefore we need to tell `gh`
what repo to use, since it can't guess based on `.git`.
2025-01-25 18:40:36 +00:00

23 lines
553 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
steps:
- name: Update nixos-24.11
if: github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
repo: ${{ github.repository }}
run: |
gh --repo "$repo" workflow run \
update.yml --ref nixos-24.11