diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index f6fb8a3747..3ab2ff8546 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -63,7 +63,7 @@ jobs: deploy: runs-on: ubuntu-latest needs: docker-build - if: github.ref == 'refs/heads/main' + if: ${{ needs.docker-build.result == 'success' && github.ref == 'refs/heads/main' }} steps: - name: Checkout repository uses: actions/checkout@v3