diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8a53ac6..d362543 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -25,7 +25,6 @@ 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 }}" @@ -35,8 +34,8 @@ jobs: - name: Login to DockerHub - if: success() uses: docker/login-action@v2 + if: ${{ success() && github.event_name == 'pull_request' }} with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_PASSWORD }}