From a961b2a8aebfba0f50065cec79dfb9cdccde3ca7 Mon Sep 17 00:00:00 2001 From: Jonas Date: Tue, 23 Jul 2024 10:16:22 +0200 Subject: [PATCH] test(cy): Install assistant app version matching the server branch Signed-off-by: Jonas --- .github/workflows/cypress-e2e.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cypress-e2e.yml b/.github/workflows/cypress-e2e.yml index c05cd7d8445..731a74eb742 100644 --- a/.github/workflows/cypress-e2e.yml +++ b/.github/workflows/cypress-e2e.yml @@ -36,11 +36,16 @@ jobs: ref: ${{ matrix.server-versions }} path: apps/viewer + - name: Register assistant Git reference + run: | + assistant_app_ref="$(if [ "${{ matrix.server-versions }}" = "master" ]; then echo -n "main"; else echo -n "${{ matrix.server-versions }}"; fi)" + echo "assistant_app_ref=$assistant_app_ref" >> $GITHUB_ENV + - name: Checkout assistant uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3 with: repository: nextcloud/assistant - ref: 'main' + ref: '${{ env.assistant_app_ref }}' path: apps/assistant - name: Checkout app