@@ -101,7 +101,7 @@ jobs:
101101 platforms : ${{ matrix.platform }}
102102 - name : Login to DockerHub
103103 uses : docker/login-action@v3
104- if : github.event.pull_request.head.repo.full_name == github.repository
104+ if : github.event_name != 'pull_request' || github. event.pull_request.head.repo.full_name == github.repository
105105 with :
106106 username : ${{ secrets.REGISTRY_USERNAME }}
107107 password : ${{ secrets.REGISTRY_PASSWORD }}
@@ -205,7 +205,7 @@ jobs:
205205 platforms : ${{ matrix.platform }}
206206 - name : Login to DockerHub
207207 uses : docker/login-action@v3
208- if : github.event.pull_request.head.repo.full_name == github.repository
208+ if : github.event_name != 'pull_request' || github. event.pull_request.head.repo.full_name == github.repository
209209 with :
210210 username : ${{ secrets.REGISTRY_USERNAME }}
211211 password : ${{ secrets.REGISTRY_PASSWORD }}
@@ -315,7 +315,7 @@ jobs:
315315 uses : docker/setup-buildx-action@v3
316316 - name : Login to DockerHub
317317 uses : docker/login-action@v3
318- if : github.event.pull_request.head.repo.full_name == github.repository
318+ if : github.event_name != 'pull_request' || github. event.pull_request.head.repo.full_name == github.repository
319319 with :
320320 username : ${{ secrets.REGISTRY_USERNAME }}
321321 password : ${{ secrets.REGISTRY_PASSWORD }}
0 commit comments