From e99813cbdcf878111c946c9b8b5f142e38bfb833 Mon Sep 17 00:00:00 2001 From: Cole Crawford <16374762+ColeDCrawford@users.noreply.github.com> Date: Tue, 11 Jun 2024 18:53:22 -0400 Subject: [PATCH] Only publish benchmark results on the upstream --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f97b3c..4645d13 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -100,7 +100,7 @@ jobs: - name: Publish benchmark results uses: benchmark-action/github-action-benchmark@v1 - if: github.event_name != 'pull_request' + if: github.event_name == 'pull_request' && github.repository == 'ixc/python-edtf' with: tool: 'pytest' auto-push: true @@ -112,6 +112,7 @@ jobs: summary-always: true - name: Comment on benchmark results without publishing + if: github.event_name != 'pull_request' || github.repository != 'ixc/python-edtf' uses: benchmark-action/github-action-benchmark@v1 with: tool: 'pytest'