update dependency-update workflow

ssh ncadmin@192.168.24.128
This commit is contained in:
Simon L 2023-04-04 14:34:21 +02:00
parent 93a0616f7e
commit 81a8352d64

View file

@ -19,17 +19,18 @@ jobs:
run: | run: |
set -x set -x
cd ./php cd ./php
composer update composer update --with-all-dependencies
set +e # Disable dependency updates for now
ALL_LINES="$(composer outdated | grep -v "^$\|Direct dependencies\|Everything up to date\|Transitive dependencies")" # set +e
set -e # ALL_LINES="$(composer outdated | grep -v "^$\|Direct dependencies\|Everything up to date\|Transitive dependencies")"
while [ -n "$ALL_LINES" ]; do # set -e
CURRENT_LINE="$(echo "$ALL_LINES" | head -1)" # while [ -n "$ALL_LINES" ]; do
composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')" --with-all-dependencies # CURRENT_LINE="$(echo "$ALL_LINES" | head -1)"
ALL_LINES="$(echo "$ALL_LINES" | sed '1d')" # composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')" --with-all-dependencies
done # ALL_LINES="$(echo "$ALL_LINES" | sed '1d')"
echo "outdated dependencies: # done
$(composer outdated)" # echo "outdated dependencies:
# $(composer outdated)"
- name: Update apcu - name: Update apcu
run: | run: |
# APCU # APCU