From c0649e665d729bd089df810d460c2fd136792505 Mon Sep 17 00:00:00 2001 From: junkmd Date: Fri, 30 Dec 2022 20:53:41 +0900 Subject: [PATCH] fix GHA settings --- .github/workflows/autofmt.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmt.yml index e1b59e129..f915a6b91 100644 --- a/.github/workflows/autofmt.yml +++ b/.github/workflows/autofmt.yml @@ -6,6 +6,9 @@ jobs: formatter: name: auto-formatter runs-on: windows-latest + # Because auto-commit to the branch from a forked repository will fail, + # so this GHA will be triggered by PRs from the source repository only. + if: github.repository == github.event.pull_request.head.repo.full_name steps: - name: Checkout uses: actions/checkout@v3