Explorar o código

Only log in to DockerHub on `push` event

Eric Zhang %!s(int64=3) %!d(string=hai) anos
pai
achega
124ff15d3d
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      .github/workflows/ci.yml

+ 1 - 0
.github/workflows/ci.yml

@@ -25,6 +25,7 @@ jobs:
         uses: docker/setup-buildx-action@v1
 
       - name: Login to DockerHub
+        if: github.event_name == 'push'
         uses: docker/login-action@v1
         with:
           username: ${{ secrets.DOCKERHUB_USERNAME }}