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
|
actions: write
|
||||||
|
|
||||||
jobs:
|
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:
|
update:
|
||||||
name: Trigger update on ${{ matrix.branch }}
|
name: Trigger update on ${{ matrix.branch }}
|
||||||
runs-on: ubuntu-24.04-arm
|
runs-on: ubuntu-24.04-arm
|
||||||
if: github.repository == 'nix-community/nixvim'
|
needs: prepare
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
branch:
|
branch: ${{ fromJSON(needs.prepare.outputs.branches) }}
|
||||||
- nixos-25.05
|
|
||||||
- nixos-24.11
|
|
||||||
steps:
|
steps:
|
||||||
- name: workflow dispatch
|
- name: workflow dispatch
|
||||||
env:
|
env:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue