mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-09-11 00:55:19 +08:00
try to fix the workflow if there is no outdated dependency
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
20d631b600
commit
4e852761d9
1 changed files with 7 additions and 5 deletions
12
.github/workflows/dependency-updates.yml
vendored
12
.github/workflows/dependency-updates.yml
vendored
|
@ -22,11 +22,13 @@ jobs:
|
|||
cd ./php
|
||||
composer update
|
||||
ALL_LINES="$(composer outdated | grep -v "psr/container")"
|
||||
while [ -n "$ALL_LINES" ]; do
|
||||
CURRENT_LINE="$(echo "$ALL_LINES" | head -1)"
|
||||
composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')"
|
||||
ALL_LINES="$(echo "$ALL_LINES" | sed '1d')"
|
||||
done
|
||||
if [ -n "$ALL_LINES" ]; then
|
||||
while [ -n "$ALL_LINES" ]; do
|
||||
CURRENT_LINE="$(echo "$ALL_LINES" | head -1)"
|
||||
composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')"
|
||||
ALL_LINES="$(echo "$ALL_LINES" | sed '1d')"
|
||||
done
|
||||
fi
|
||||
echo "outdated dependencies:
|
||||
$(composer outdated)"
|
||||
- name: Create Pull Request
|
||||
|
|
Loading…
Add table
Reference in a new issue