php-fpm: bad jc call
This commit is contained in:
10
.github/workflows/php-fpm.yml
vendored
10
.github/workflows/php-fpm.yml
vendored
@@ -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 = [];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user