From e5fa65aed830d50fcd97a952de0e43917af5828f Mon Sep 17 00:00:00 2001 From: Josh Date: Mon, 30 Mar 2026 13:14:37 -0400 Subject: [PATCH] ci: add path filtering to performance testing workflow Signed-off-by: Josh --- .github/workflows/performance.yml | 30 +++++++++++++++++++++++++++++- 1 file changed, 29 insertions(+), 1 deletion(-) diff --git a/.github/workflows/performance.yml b/.github/workflows/performance.yml index abcc463f5d8fd..42a86656bca25 100644 --- a/.github/workflows/performance.yml +++ b/.github/workflows/performance.yml @@ -12,10 +12,38 @@ concurrency: cancel-in-progress: true jobs: + changes: + runs-on: ubuntu-latest-low + permissions: + contents: read + pull-requests: read + + 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/**' + - '3rdparty/**' + - '**/appinfo/**' + - '**/lib/**' + - '**/templates/**' + - 'vendor/**' + - 'vendor-bin/**' + - 'composer.json' + - 'composer.lock' + - '**.php' + performance-testing: runs-on: ubuntu-latest - if: ${{ github.repository_owner != 'nextcloud-gmbh' }} + needs: changes + if: ${{ needs.changes.outputs.src != 'false' && github.repository_owner != 'nextcloud-gmbh' }} permissions: pull-requests: write