From ce837597b5258c294c77f4ea674ba8f613e5f8e7 Mon Sep 17 00:00:00 2001 From: Naoto Ono Date: Wed, 13 Nov 2024 15:54:49 +0900 Subject: [PATCH] Skip login when the PR is from fork repo --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 9893718..19f4e33 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -61,7 +61,7 @@ jobs: username: ${{ github.actor }} password: ${{ secrets.ACCESS_TOKEN }} registry: ghcr.io - if: ${{ github.actor != 'dependabot[bot]' }} + if: ${{ github.actor != 'dependabot[bot]' && github.event.pull_request.head.repo.fork == false }} - name: Resolve build_ruby version uses: ruby/setup-ruby@7d3497fd78c07c0d84ebafa58d8dac60cd1f0763 # v1.199.0