mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-27 16:07:51 +08:00
fix the nextcloud update workflow
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
55a2f40eca
commit
7f82405c8b
1 changed files with 2 additions and 1 deletions
3
.github/workflows/nextcloud-update.yml
vendored
3
.github/workflows/nextcloud-update.yml
vendored
|
@ -60,7 +60,8 @@ jobs:
|
|||
sed -i "s|pecl install imagick.*\;|pecl install imagick-$imagick_version\;|" ./Containers/nextcloud/Dockerfile
|
||||
|
||||
# Nextcloud
|
||||
NCVERSION=$(curl -s -m 900 https://download.nextcloud.com/server/releases/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | sort --version-sort | tail -1)
|
||||
NC_MAJOR="$(grep "ENV NEXTCLOUD_VERSION" ./Containers/nextcloud/Dockerfile | grep -oP '[23][0-9]')"
|
||||
NCVERSION=$(curl -s -m 900 https://download.nextcloud.com/server/releases/ | sed --silent 's/.*href="nextcloud-\([^"]\+\).zip.asc".*/\1/p' | grep "$NC_MAJOR" | sort --version-sort | tail -1)
|
||||
sed -i "s|^ENV NEXTCLOUD_VERSION.*|ENV NEXTCLOUD_VERSION $NCVERSION|" ./Containers/nextcloud/Dockerfile
|
||||
|
||||
- name: Create Pull Request
|
||||
|
|
Loading…
Reference in a new issue