diff --git a/.github/workflows/pr-code-testing.yml b/.github/workflows/pr-code-testing.yml index b7353d4..4a3ab36 100644 --- a/.github/workflows/pr-code-testing.yml +++ b/.github/workflows/pr-code-testing.yml @@ -286,7 +286,11 @@ jobs: name: Publish Badges runs-on: ubuntu-latest needs: test - if: ${{ needs.test.outputs.has_src_changes == 'true' && success() }} + if: >- + ${{ + needs.test.outputs.has_src_changes == 'true' && success() && + (github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository) + }} steps: - name: Verify gist access