diff --git a/.github/workflows/build-metrics.yml b/.github/workflows/build-metrics.yml index 5d616e2fdf39..366f7a4e5e9d 100644 --- a/.github/workflows/build-metrics.yml +++ b/.github/workflows/build-metrics.yml @@ -122,7 +122,7 @@ jobs: contents: write runs-on: ubuntu-latest name: Generate and Upload Build Metric Report - # needs: metrics + needs: metrics steps: - name: Checkout uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 @@ -134,7 +134,7 @@ jobs: git config --global user.email "velox@users.noreply.github.com" git config --global user.name "velox" - - uses: cachix/install-nix-action@v26 + - uses: cachix/install-nix-action@8887e596b4ee1134dae06b98d573bd674693f47c # v26 with: nix_path: nixpkgs=channel:nixos-unstable @@ -152,8 +152,10 @@ jobs: cd scripts/bm-report nix-shell --run "quarto render report.qmd" - - name: Push Documentation - # if: ${{ github.event_name == 'push' && github.repository == 'facebookincubator/velox'}} + - name: Push Report + # The report only uses conbench data from 'main' + # so any data generated in a PR won't be included + if: ${{ github.event_name != 'pull_request' && github.repository == 'facebookincubator/velox'}} run: | git checkout gh-pages mkdir -p docs/bm-report