From 851337c1bf493af82770103025e899e40328bda8 Mon Sep 17 00:00:00 2001 From: Elijah Duffy Date: Sun, 7 Dec 2025 23:45:04 -0800 Subject: [PATCH] php-fpm: correct job order & matrix empty output --- .github/workflows/php-fpm.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/php-fpm.yml b/.github/workflows/php-fpm.yml index 0e185b2..393b132 100644 --- a/.github/workflows/php-fpm.yml +++ b/.github/workflows/php-fpm.yml @@ -22,12 +22,11 @@ on: jobs: build: + needs: lanes runs-on: ubuntu-latest strategy: fail-fast: false - matrix: - # This matrix will be dynamically populated by the 'lanes' job - lane: [] + matrix: ${{ fromJson(needs.lanes.outputs.matrix) }} steps: - name: Checkout repository uses: actions/checkout@v4 @@ -125,6 +124,9 @@ jobs: else # Determine changed lanes from php-fpm directory changed_lanes=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep '^php-fpm/' | cut -d'/' -f2 | sort -u | jq -R . | jq -s .) + if [[ -z "$changed_lanes" ]]; then + changed_lanes="[]" + fi matrix="{\"lane\":$changed_lanes}" fi