From 627b2e60b9ee8fb908bddd16241bc2bcba793824 Mon Sep 17 00:00:00 2001 From: meysamhadeli Date: Thu, 26 Jan 2023 02:03:52 +0330 Subject: [PATCH] refactor --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 540c6dd..8a53ac6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,6 +25,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: "Print result" + if: success() run: | echo "tag_name: ${{ steps.last_release.outputs.tag_name }}" echo "name: ${{ steps.last_release.outputs.name }}" @@ -34,7 +35,7 @@ jobs: - name: Login to DockerHub - if: ${{ steps.last_release.outputs.tag_name }} != 0 + if: success() uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }}