php-fpm: bad jc call
Some checks failed
php-fpm-build / lanes (push) Failing after 13s
php-fpm-build / build (push) Has been skipped

This commit is contained in:
Elijah Duffy
2025-12-08 00:11:14 -08:00
parent 4c5ade26ed
commit 77aeb60eb1

View File

@@ -43,13 +43,13 @@ jobs:
- name: Get all PHP lanes - name: Get all PHP lanes
id: get-lanes id: get-lanes
run: | run: |
echo "lanes=$(find php-fpm -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | jq -R . | jq -s .)" >> $GITHUB_OUTPUT echo "lanes=$(find php-fpm -mindepth 1 -maxdepth 1 -type d -exec basename {} \; | jq -c -R . | jq -c -s .)" >> $GITHUB_OUTPUT
shell: bash shell: bash
- name: Get changed PHP lanes - name: Get changed PHP lanes
id: changed-lanes id: changed-lanes
run: | 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 .) changed_lanes=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep '^php-fpm/' | cut -d'/' -f2 | sort -u | jq -c -R . | jq -c -s .)
echo "lanes=${changed_lanes:-[]}" >> $GITHUB_OUTPUT echo "lanes=${changed_lanes:-[]}" >> $GITHUB_OUTPUT
shell: bash shell: bash
@@ -72,9 +72,9 @@ jobs:
result-encoding: json result-encoding: json
script: | script: |
const req_lane = "${{ github.event.inputs.lane }}"; const req_lane = "${{ github.event.inputs.lane }}";
const build_all = ${{ steps.build-all-check.outputs.build_all === 'true' }}; const build_all = ${{ steps.build-all-check.outputs.build_all == 'true' }};
const all_lanes = JSON.parse('${{ steps.get-lanes.outputs.lanes }}'); const all_lanes = JSON.parse('${{ steps.get-lanes.outputs.lanes }}' || '[]');
const changed_lanes = JSON.parse('${{ steps.changed-lanes.outputs.lanes }}'); const changed_lanes = JSON.parse('${{ steps.changed-lanes.outputs.lanes }}' || '[]');
let lanes_to_build = []; let lanes_to_build = [];