Skip to content
Merged
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
29 changes: 13 additions & 16 deletions .github/workflows/update-nextcloud-openapi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,11 @@ jobs:
strategy:
fail-fast: false
matrix:
branches: ['main', 'master', 'stable33', 'stable32']
branches:
- ${{ github.event.repository.default_branch }}
- 'stable34'
- 'stable33'
- 'stable32'

name: Update Nextcloud OpenAPI types from core

Expand All @@ -29,22 +33,12 @@ jobs:
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV

- name: Checkout server
if: ${{ matrix.branches != 'main' }}
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
submodules: true
repository: nextcloud/server
ref: ${{ matrix.branches }}

- name: Checkout server (Main)
if: ${{ matrix.branches == 'main' }}
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
submodules: true
repository: nextcloud/server
ref: master
ref: ${{ matrix.branches == 'main' && 'master' || matrix.branches }}

- name: Checkout app
id: checkout
Expand Down Expand Up @@ -73,15 +67,18 @@ jobs:
if: steps.checkout.outcome == 'success'
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'

- name: Install dependencies & generate types
- name: Install dependencies
if: steps.checkout.outcome == 'success'
working-directory: apps/${{ env.APP_NAME }}
env:
CYPRESS_INSTALL_BINARY: 0
PUPPETEER_SKIP_DOWNLOAD: true
run: |
npm ci
npm run ts:generate-core-types --if-present
run: npm ci

- name: Generate types
if: steps.checkout.outcome == 'success'
working-directory: apps/${{ env.APP_NAME }}
run: npm run ts:generate-core-types

- name: Create Pull Request
if: steps.checkout.outcome == 'success'
Expand Down
9 changes: 0 additions & 9 deletions .github/workflows/update-nextcloud-openapi.yml.patch

This file was deleted.

Loading