Skip to content

Commit 1b84107

Browse files
committed
fix: guests app uses "main" branch instead of "master" for the latest
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
1 parent 4732cf7 commit 1b84107

4 files changed

Lines changed: 24 additions & 4 deletions

File tree

.github/workflows/behat-mariadb.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,12 @@ jobs:
151151
./occ app:enable --force notifications
152152
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
153153
./occ app:enable --force activity
154-
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/guests apps/guests
154+
# guests app uses "main" branch instead of "master" for the latest
155+
branch="${{ matrix.server-versions }}"
156+
if [ "$branch" = "master" ]; then
157+
branch="main"
158+
fi
159+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
155160
./occ app:enable --force guests
156161
./occ config:system:set mail_smtpport --value 1025 --type integer
157162
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-mysql.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,12 @@ jobs:
164164
./occ app:enable --force notifications
165165
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
166166
./occ app:enable --force activity
167-
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/guests apps/guests
167+
# guests app uses "main" branch instead of "master" for the latest
168+
branch="${{ matrix.server-versions }}"
169+
if [ "$branch" = "master" ]; then
170+
branch="main"
171+
fi
172+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
168173
./occ app:enable --force guests
169174
./occ config:system:set mail_smtpport --value 1025 --type integer
170175
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-pgsql.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,12 @@ jobs:
158158
./occ app:enable --force notifications
159159
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
160160
./occ app:enable --force activity
161-
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/guests apps/guests
161+
# guests app uses "main" branch instead of "master" for the latest
162+
branch="${{ matrix.server-versions }}"
163+
if [ "$branch" = "master" ]; then
164+
branch="main"
165+
fi
166+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
162167
./occ app:enable --force guests
163168
./occ config:system:set mail_smtpport --value 1025 --type integer
164169
./occ config:system:set mail_smtphost --value mailhog

.github/workflows/behat-sqlite.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,12 @@ jobs:
149149
./occ app:enable --force notifications
150150
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/activity apps/activity
151151
./occ app:enable --force activity
152-
git clone --depth 1 -b ${{ matrix.server-versions }} https://github.com/nextcloud/guests apps/guests
152+
# guests app uses "main" branch instead of "master" for the latest
153+
branch="${{ matrix.server-versions }}"
154+
if [ "$branch" = "master" ]; then
155+
branch="main"
156+
fi
157+
git clone --depth 1 -b "$branch" https://github.com/nextcloud/guests apps/guests
153158
./occ app:enable --force guests
154159
./occ config:system:set mail_smtpport --value 1025 --type integer
155160
./occ config:system:set mail_smtphost --value mailhog

0 commit comments

Comments
 (0)