Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/app-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
SQL: ${{ matrix.database }}
SERVER_BRANCH: ${{ matrix.nextcloudVersion }}
NEXTCLOUD_AUTOINSTALL: 'Yes'
NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc integration_openproject
NEXTCLOUD_AUTOINSTALL_APPS: oidc groupfolders user_oidc
NEXTCLOUD_AUTOINSTALL_APPS_WAIT_TIME: 60
WITH_REDIS: 'YES'
ports:
Expand Down Expand Up @@ -97,6 +97,25 @@ jobs:
cache: 'npm'
cache-dependency-path: 'integration_openproject/package-lock.json'

- name: Install stable integration_openproject app
env:
REPO: ${{ github.repository }}
run: |
BRANCH_VERSION=$(grep -oP '(?<=<version>)[^<]+' integration_openproject/appinfo/info.xml | cut -d. -f1,2)
STABLE_RELEASE_TAGS=$(gh release list --repo "${REPO}" --json tagName -q '.[].tagName' \
| grep -v nightly)

TAG=$(echo "${STABLE_RELEASE_TAGS}" | grep "^v${VERSION}\." | head -n1)
if [ -z "$TAG" ]; then
TAG=$(echo "${STABLE_RELEASE_TAGS}" | head -n1)
fi
Comment on lines +108 to +111

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TAG value must be lower or equal (<=) to the VERSION

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make sure that the major and minor versions number matches for stable branch. Next version will always be patch level for release branch.
Make sure STABLE_RELEASE_TAGS is sorted in desc order.


gh release download "${TAG}" --repo "${REPO}" --pattern '*.tar.gz' --dir /tmp/app
docker cp /tmp/app nextcloud:/tmp/app
docker exec nextcloud bash -c '
tar -xzf /tmp/app/*.tar.gz -C /var/www/html/apps &&
occ app:enable integration_openproject'

- name: Wait for Nextcloud server to be ready
run: |
if ! timeout 5m bash -c '
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-ci-master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ name: Nightly CI (Master)
on:
schedule:
- cron: '0 22 * * *' # run at 10 PM UTC
pull_request:

jobs:
nightly-builds:
Expand Down
Loading