Skip to content

Commit 7e02029

Browse files
committed
ci/update-other: move branch list to a prepare job
1 parent b5e0ed6 commit 7e02029

File tree

1 file changed

+18
-4
lines changed

1 file changed

+18
-4
lines changed

.github/workflows/update-other.yml

Lines changed: 18 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,15 +10,29 @@ permissions:
1010
actions: write
1111

1212
jobs:
13+
prepare:
14+
name: Compute list of branches
15+
runs-on: ubuntu-24.04-arm
16+
if: github.repository == 'nix-community/nixvim'
17+
outputs:
18+
branches: ${{ steps.list-branches.outputs.branches }}
19+
steps:
20+
- name: List stable branches
21+
id: list-branches
22+
run: |
23+
echo 'branches<<EOF
24+
[
25+
"nixos-25.05",
26+
"nixos-24.11"
27+
]
28+
EOF' >> "$GITHUB_OUTPUT"
1329
update:
1430
name: Trigger update on ${{ matrix.branch }}
1531
runs-on: ubuntu-24.04-arm
16-
if: github.repository == 'nix-community/nixvim'
32+
needs: prepare
1733
strategy:
1834
matrix:
19-
branch:
20-
- nixos-25.05
21-
- nixos-24.11
35+
branch: ${{ fromJSON(needs.prepare.outputs.branches) }}
2236
steps:
2337
- name: workflow dispatch
2438
env:

0 commit comments

Comments
 (0)