From 4828c06e4469df761670d8801b366251450cc786 Mon Sep 17 00:00:00 2001 From: meysamhadeli Date: Thu, 26 Jan 2023 02:09:48 +0330 Subject: [PATCH] refactor --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d362543..c1287a0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -35,7 +35,7 @@ jobs: - name: Login to DockerHub uses: docker/login-action@v2 - if: ${{ success() && github.event_name == 'pull_request' }} + if: ${{ success() && steps.last_release.outputs.tag_name != '' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }}