ci(openapi): Fix checkout of correct server branch

Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
Joas Schilling
2025-04-28 10:59:28 +02:00
parent f2cd195631
commit 8042e122d4

View File

@ -29,12 +29,22 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
- name: Checkout server
if: ${{ matrix.branches != 'main' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
submodules: true
repository: nextcloud/server
ref: ${{ matrix.server-versions }}
ref: ${{ matrix.branches }}
- name: Checkout server (Main)
if: ${{ matrix.branches == 'main' }}
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
with:
persist-credentials: false
submodules: true
repository: nextcloud/server
ref: master
- name: Checkout app
id: checkout