php-fpm: correct job order & matrix empty output
Some checks failed
php-fpm-build / lanes (push) Failing after 12s
php-fpm-build / build (push) Has been skipped

This commit is contained in:
Elijah Duffy
2025-12-07 23:45:04 -08:00
parent d95e25d39e
commit 851337c1bf

View File

@@ -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