From 7e02029af60a5aa1877e7c26e30e6198555e0652 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Wed, 11 Jun 2025 22:31:00 +0100 Subject: [PATCH] ci/update-other: move branch list to a prepare job --- .github/workflows/update-other.yml | 22 ++++++++++++++++++---- 1 file changed, 18 insertions(+), 4 deletions(-) diff --git a/.github/workflows/update-other.yml b/.github/workflows/update-other.yml index 9df370ab..4db2eab7 100644 --- a/.github/workflows/update-other.yml +++ b/.github/workflows/update-other.yml @@ -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<> "$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: