nix-community.nixvim/.github/workflows/update-other.yml
Matt Sturgeon 6046ad79f0
ci/update: schedule main branch daily, other branches weekly
Split scheduling other branches into a dedicated workflow. The main
update workflow is no longer responsible for triggering the workflow on
_other_ branches.
2025-01-22 20:15:57 +00:00

23 lines
599 B
YAML

name: update
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:
# NOTE: If additional "inputs" are added, copy this step
# Drop the `github.event_name` condition when a branch reaches end-of-life
- name: Update nixos-24.11
if: github.event_name == 'schedule'
env:
GH_TOKEN: ${{ github.token }}
run: |
gh workflow run update.yml --ref nixos-24.11