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 }}