diff --git a/.github/workflows/build-metrics.yml b/.github/workflows/build-metrics.yml index 366f7a4e5e9d..12dc9715bc78 100644 --- a/.github/workflows/build-metrics.yml +++ b/.github/workflows/build-metrics.yml @@ -100,6 +100,8 @@ jobs: python3 -m pip install -r scripts/benchmark-requirements.txt - name: "Upload Metrics" + # This disables the upload and report generation on fork PRs but allows it for forks from within the main repo. + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'facebookincubator/velox' }} env: CONBENCH_URL: "https://velox-conbench.voltrondata.run/" CONBENCH_MACHINE_INFO_NAME: "GitHub-runner-${{ matrix.runner }}" @@ -118,6 +120,7 @@ jobs: "/tmp/metrics" upload-report: + if: ${{ github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == 'facebookincubator/velox' }} permissions: contents: write runs-on: ubuntu-latest