diff --git a/.github/workflows/java-autoformat.yml b/.github/workflows/java-autoformat.yml index 50e14d02b..ad1e6f5a9 100644 --- a/.github/workflows/java-autoformat.yml +++ b/.github/workflows/java-autoformat.yml @@ -5,7 +5,7 @@ jobs: format_dev: if: | github.event.pull_request.base.ref == 'dev' && - github.event.pull_request.head.repo.fork == false + github.event.pull_request.head.repo.name == github.repository runs-on: ubuntu-latest steps: - name: Checkout code @@ -54,7 +54,7 @@ jobs: format_other_branches: if: | github.event.pull_request.base.ref != 'dev' && - github.event.pull_request.head.repo.fork == false + github.event.pull_request.head.repo.name == github.repository runs-on: ubuntu-latest steps: - name: Checkout code