mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
ci/update-other: move branch list to a prepare job
This commit is contained in:
parent
b5e0ed67fe
commit
7e02029af6
1 changed files with 18 additions and 4 deletions
22
.github/workflows/update-other.yml
vendored
22
.github/workflows/update-other.yml
vendored
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue