01acfa3b40
Type checking / changes (push) Has been cancelled
Type checking / test (push) Has been cancelled
Type checking / typescript-summary (push) Has been cancelled
Node tests / changes (push) Has been cancelled
Node tests / test (push) Has been cancelled
Node tests / test-summary (push) Has been cancelled
Источник: https://github.com/nextcloud/spreed/archive/refs/tags/v22.0.12.tar.gz С этого коммита ветка официального Nextcloud Talk отрезана (решение владельца 2026-07-06). Все дальнейшие изменения — только наши; версии релизов: 22.0.12-f7.N.
103 lines
3.4 KiB
YAML
103 lines
3.4 KiB
YAML
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
name: Update nextcloud/openapi
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "5 4 * * 0"
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
update-nextcloud-openapi:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
branches: ['main', 'master', 'stable31', 'stable30']
|
|
|
|
name: Update Nextcloud OpenAPI types from core
|
|
|
|
steps:
|
|
- name: Set app env
|
|
run: |
|
|
# Split and keep last
|
|
echo "APP_NAME=${GITHUB_REPOSITORY##*/}" >> $GITHUB_ENV
|
|
|
|
- name: Checkout server
|
|
if: ${{ matrix.branches != 'main' }}
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.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@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
repository: nextcloud/server
|
|
ref: master
|
|
|
|
- name: Checkout app
|
|
id: checkout
|
|
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
|
|
with:
|
|
persist-credentials: false
|
|
path: apps/${{ env.APP_NAME }}
|
|
ref: ${{ matrix.branches }}
|
|
continue-on-error: true
|
|
|
|
- name: Read package.json node and npm engines version
|
|
if: steps.checkout.outcome == 'success'
|
|
uses: skjnldsv/read-package-engines-version-actions@06d6baf7d8f41934ab630e97d9e6c0bc9c9ac5e4 # v3
|
|
id: versions
|
|
with:
|
|
fallbackNode: '^20'
|
|
fallbackNpm: '^10'
|
|
|
|
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
|
|
if: steps.checkout.outcome == 'success'
|
|
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
with:
|
|
node-version: ${{ steps.versions.outputs.nodeVersion }}
|
|
|
|
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
|
|
if: steps.checkout.outcome == 'success'
|
|
run: npm i -g 'npm@${{ steps.versions.outputs.npmVersion }}'
|
|
|
|
- name: Install dependencies & generate types
|
|
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
|
|
|
|
- name: Create Pull Request
|
|
if: steps.checkout.outcome == 'success'
|
|
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
|
|
with:
|
|
path: apps/${{ env.APP_NAME }}
|
|
token: ${{ secrets.COMMAND_BOT_PAT }} # zizmor: ignore[secrets-outside-env]
|
|
commit-message: 'chore(ts): update OpenAPI types from core'
|
|
committer: GitHub <noreply@github.com>
|
|
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
|
|
signoff: true
|
|
branch: 'automated/noid/${{ matrix.branches }}-update-nextcloud-openapi'
|
|
title: '[${{ matrix.branches }}] Update Nextcloud OpenAPI types'
|
|
body: |
|
|
Auto-generated update of Nextcloud OpenAPI types
|
|
labels: |
|
|
dependencies
|
|
3. to review
|