mirror of
https://github.com/nix-community/nixvim.git
synced 2025-08-05 02:26:15 +02:00
Split scheduling other branches into a dedicated workflow. The main update workflow is no longer responsible for triggering the workflow on _other_ branches.
23 lines
599 B
YAML
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
|