From 73b073b269064d3687ddab40dea81b68188bb2b8 Mon Sep 17 00:00:00 2001 From: Sergejs Kostjucenko Date: Thu, 14 Dec 2023 15:53:58 +0200 Subject: [PATCH] fix docker login condition --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 61ddc308b..7affe97cb 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -205,6 +205,7 @@ jobs: chmod +x ./artifacts/polkadot-staking-miner - name: Log in to Docker Hub + if: ${{ github.ref == 'refs/heads/main' || github.ref_type == 'tag' }} uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }}