From 9e7831bf55ff688800cddb0bbe76f3be11f9f8af Mon Sep 17 00:00:00 2001 From: jc <46619361+juancwu@users.noreply.github.com> Date: Sun, 10 Nov 2024 20:56:19 -0500 Subject: [PATCH] only comment on PR after test --- .github/workflows/run-tests.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/run-tests.yaml b/.github/workflows/run-tests.yaml index d1f5247..1bf8d23 100644 --- a/.github/workflows/run-tests.yaml +++ b/.github/workflows/run-tests.yaml @@ -38,7 +38,7 @@ jobs: run: go test -v ./... # Comment test results on the PR - name: Comment PR - if: always() + if: github.event_name == 'pull_request' && always() uses: actions/github-script@v7 with: github-token: ${{ secrets.GITHUB_TOKEN }}