Skip to content

Commit 311b237

Browse files
committed
Fix docker login running on PRs
1 parent 72f7077 commit 311b237

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/workflows/checkers-and-linters.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
go-version-file: 'go.mod'
2222
# Secrets are not available on pull requests.
2323
- name: Login to Docker Hub
24-
if: github.ref == 'refs/heads/main'
24+
if: ${{ github.event_name != 'pull_request' }}
2525
uses: docker/login-action@e92390c5fb421da1463c202d546fed0ec5c39f20 # v3.1.0
2626
with:
2727
username: ${{ secrets.RO_DOCKERHUB_USER }}

0 commit comments

Comments
 (0)