ci/update-other: move branch list to a prepare job

This commit is contained in:
Matt Sturgeon 2025-06-11 22:31:00 +01:00
parent b5e0ed67fe
commit 7e02029af6

View file

@ -10,15 +10,29 @@ permissions:
actions: write
jobs:
prepare:
name: Compute list of branches
runs-on: ubuntu-24.04-arm
if: github.repository == 'nix-community/nixvim'
outputs:
branches: ${{ steps.list-branches.outputs.branches }}
steps:
- name: List stable branches
id: list-branches
run: |
echo 'branches<<EOF
[
"nixos-25.05",
"nixos-24.11"
]
EOF' >> "$GITHUB_OUTPUT"
update:
name: Trigger update on ${{ matrix.branch }}
runs-on: ubuntu-24.04-arm
if: github.repository == 'nix-community/nixvim'
needs: prepare
strategy:
matrix:
branch:
- nixos-25.05
- nixos-24.11
branch: ${{ fromJSON(needs.prepare.outputs.branches) }}
steps:
- name: workflow dispatch
env: