mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-19 22:16:49 +00: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
2
.github/workflows/dependency-updates.yml
vendored
2
.github/workflows/dependency-updates.yml
vendored
|
|
@ -22,11 +22,13 @@ jobs:
|
||||||
cd ./php
|
cd ./php
|
||||||
composer update
|
composer update
|
||||||
ALL_LINES="$(composer outdated | grep -v "psr/container")"
|
ALL_LINES="$(composer outdated | grep -v "psr/container")"
|
||||||
|
if [ -n "$ALL_LINES" ]; then
|
||||||
while [ -n "$ALL_LINES" ]; do
|
while [ -n "$ALL_LINES" ]; do
|
||||||
CURRENT_LINE="$(echo "$ALL_LINES" | head -1)"
|
CURRENT_LINE="$(echo "$ALL_LINES" | head -1)"
|
||||||
composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')"
|
composer require "$(echo "$CURRENT_LINE" | awk '{print $1}')" "^$(echo "$CURRENT_LINE" | awk '{print $4}')"
|
||||||
ALL_LINES="$(echo "$ALL_LINES" | sed '1d')"
|
ALL_LINES="$(echo "$ALL_LINES" | sed '1d')"
|
||||||
done
|
done
|
||||||
|
fi
|
||||||
echo "outdated dependencies:
|
echo "outdated dependencies:
|
||||||
$(composer outdated)"
|
$(composer outdated)"
|
||||||
- name: Create Pull Request
|
- name: Create Pull Request
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue