php-fpm: hereee we go againnn
Some checks failed
php-fpm-build / lanes (push) Failing after 52s
php-fpm-build / build (push) Has been skipped

This commit is contained in:
Elijah Duffy
2025-12-08 00:03:59 -08:00
parent d26be40134
commit 4c5ade26ed

View File

@@ -24,7 +24,7 @@ jobs:
lanes:
runs-on: ubuntu-latest
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}
matrix: ${{ steps.set-matrix.outputs.result }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
@@ -49,7 +49,7 @@ jobs:
- name: Get changed PHP lanes
id: changed-lanes
run: |
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 . == [] then [] else . end')
changed_lanes=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep '^php-fpm/' | cut -d'/' -f2 | sort -u | jq -R . | jq -s .)
echo "lanes=${changed_lanes:-[]}" >> $GITHUB_OUTPUT
shell: bash
@@ -69,9 +69,10 @@ jobs:
id: set-matrix
uses: actions/github-script@v7
with:
result-encoding: json
script: |
const req_lane = "${{ github.event.inputs.lane }}";
const build_all = ${{ steps.build-all-check.outputs.build_all }};
const build_all = ${{ steps.build-all-check.outputs.build_all === 'true' }};
const all_lanes = JSON.parse('${{ steps.get-lanes.outputs.lanes }}');
const changed_lanes = JSON.parse('${{ steps.changed-lanes.outputs.lanes }}');
@@ -90,11 +91,10 @@ jobs:
}
return { lane: lanes_to_build };
result-encoding: json
build:
needs: lanes
if: ${{ needs.lanes.outputs.matrix.lane[0] }}
if: ${{ needs.lanes.outputs.matrix != '' && needs.lanes.outputs.matrix.lane[0] }}
runs-on: ubuntu-latest
strategy:
fail-fast: false