mirror of
https://github.com/nextcloud/all-in-one.git
synced 2024-12-29 10:10:55 +08:00
6341ccdf54
Signed-off-by: Simon L <szaimen@e.mail.de>
47 lines
1.4 KiB
YAML
47 lines
1.4 KiB
YAML
name: Update Psalm baseline
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: '5 4 * * *'
|
|
|
|
jobs:
|
|
update-psalm-baseline:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
|
|
- name: Set up php8.2
|
|
uses: shivammathur/setup-php@v2
|
|
with:
|
|
php-version: 8.2
|
|
extensions: apcu
|
|
coverage: none
|
|
|
|
- name: Run script
|
|
run: |
|
|
set -x
|
|
cd php
|
|
composer global require vimeo/psalm --prefer-dist --no-progress --dev
|
|
composer install
|
|
composer run psalm -- --monochrome --no-progress --output-format=text --update-baseline
|
|
git clean -f lib/composer
|
|
git checkout composer.json composer.lock lib/composer
|
|
continue-on-error: true
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
token: ${{ secrets.COMMAND_BOT_PAT }}
|
|
commit-message: Update psalm baseline
|
|
committer: GitHub <noreply@github.com>
|
|
author: nextcloud-command <nextcloud-command@users.noreply.github.com>
|
|
signoff: true
|
|
branch: automated/noid/psalm-baseline-update
|
|
title: '[Automated] Update psalm-baseline.xml'
|
|
milestone: next
|
|
body: |
|
|
Auto-generated update psalm-baseline.xml with fixed psalm warnings
|
|
labels: |
|
|
3. to review, dependencies
|