php-fpm: fixed grep, gemini is confidenttt heh
This commit is contained in:
14
.github/workflows/php-fpm.yml
vendored
14
.github/workflows/php-fpm.yml
vendored
@@ -49,20 +49,18 @@ jobs:
|
|||||||
- 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 -c -R . | jq -c -s .)
|
changed_lanes=$(echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep '^php-fpm/' || true | 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
|
||||||
|
|
||||||
- name: Check for changes requiring all lanes to be built
|
- name: Check for changes requiring all lanes to be built
|
||||||
id: build-all-check
|
id: build-all-check
|
||||||
run: |
|
run: |
|
||||||
for file in ${{ steps.changed-files.outputs.all_changed_files }}; do
|
if echo "${{ steps.changed-files.outputs.all_changed_files }}" | tr ' ' '\n' | grep -q -e '^\.github/workflows/' -e '^shared/php-fpm/'; then
|
||||||
if [[ "$file" == ".github/workflows/php-fpm.yml" || "$file" == shared/php-fpm/* ]]; then
|
echo "build_all=true"
|
||||||
echo "build_all=true" >> $GITHUB_OUTPUT
|
else
|
||||||
exit 0
|
echo "build_all=false"
|
||||||
fi
|
fi >> $GITHUB_OUTPUT
|
||||||
done
|
|
||||||
echo "build_all=false" >> $GITHUB_OUTPUT
|
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
||||||
- name: Generate matrix for build job
|
- name: Generate matrix for build job
|
||||||
|
|||||||
Reference in New Issue
Block a user