diff --git a/.github/workflows/cypress-e2e.yml b/.github/workflows/cypress-e2e.yml index f33faf3978f..dfc187633f5 100644 --- a/.github/workflows/cypress-e2e.yml +++ b/.github/workflows/cypress-e2e.yml @@ -39,11 +39,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@v4.1.1 with: repository: nextcloud/assistant - ref: 'main' + ref: '${{ env.assistant_app_ref }}' path: apps/assistant - name: Checkout app