From 2e311cb0880014a5f6ad659e1e4be5fac2ba1757 Mon Sep 17 00:00:00 2001 From: skjnldsv Date: Fri, 8 Mar 2024 20:49:49 +0100 Subject: [PATCH] chore: update workflows from templates Signed-off-by: skjnldsv --- .github/workflows/npm-audit-fix.yml | 4 +- .github/workflows/psalm.yml | 45 +--------------------- .github/workflows/update-nextcloud-ocp.yml | 2 +- 3 files changed, 5 insertions(+), 46 deletions(-) diff --git a/.github/workflows/npm-audit-fix.yml b/.github/workflows/npm-audit-fix.yml index 458830a8..d7c4a414 100644 --- a/.github/workflows/npm-audit-fix.yml +++ b/.github/workflows/npm-audit-fix.yml @@ -57,10 +57,10 @@ jobs: - name: Create Pull Request if: always() - uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v5 + uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1 with: token: ${{ secrets.COMMAND_BOT_PAT }} - commit-message: "chore(deps): fix npm audit" + commit-message: "fix(deps): fix npm audit" committer: GitHub author: nextcloud-command signoff: true diff --git a/.github/workflows/psalm.yml b/.github/workflows/psalm.yml index 651a3eab..e2035ec2 100644 --- a/.github/workflows/psalm.yml +++ b/.github/workflows/psalm.yml @@ -12,37 +12,10 @@ concurrency: cancel-in-progress: true jobs: - changes: - runs-on: ubuntu-latest-low - - outputs: - src: ${{ steps.changes.outputs.src}} - - steps: - - uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2 - id: changes - continue-on-error: true - with: - filters: | - src: - - '.github/workflows/**' - - 'appinfo/**' - - 'lib/**' - - 'templates/**' - - 'tests/**' - - 'vendor/**' - - 'vendor-bin/**' - - '.php-cs-fixer.dist.php' - - 'composer.json' - - 'composer.lock' - - psalm-static-analysis: + static-analysis: runs-on: ubuntu-latest - needs: [changes] - if: needs.changes.outputs.src != 'false' - - name: psalm-static-analysis + name: static-psalm-analysis steps: - name: Checkout uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633 # v4.1.2 @@ -66,17 +39,3 @@ jobs: - name: Run coding standards check run: composer run psalm - - static-analysis: - permissions: - contents: none - runs-on: ubuntu-latest-low - needs: [changes, psalm-static-analysis] - - if: always() - - name: static-psalm-analysis - - steps: - - name: Summary status - run: if ${{ needs.changes.outputs.src != 'false' && needs.psalm-static-analysis.result != 'success' }}; then exit 1; fi diff --git a/.github/workflows/update-nextcloud-ocp.yml b/.github/workflows/update-nextcloud-ocp.yml index 4773f148..9946f43a 100644 --- a/.github/workflows/update-nextcloud-ocp.yml +++ b/.github/workflows/update-nextcloud-ocp.yml @@ -100,7 +100,7 @@ jobs: - name: Create Pull Request if: steps.checkout.outcome == 'success' - uses: peter-evans/create-pull-request@70a41aba780001da0a30141984ae2a0c95d8704e # v3 + uses: peter-evans/create-pull-request@a4f52f8033a6168103c2538976c07b467e8163bc # v6.0.1 with: token: ${{ secrets.COMMAND_BOT_PAT }} commit-message: "chore(dev-deps): Bump nextcloud/ocp package"