diff --git a/.github/workflows/docker-publish-on-comment.yml b/.github/workflows/docker-publish-on-comment.yml index 4763d08c..f981bbb3 100644 --- a/.github/workflows/docker-publish-on-comment.yml +++ b/.github/workflows/docker-publish-on-comment.yml @@ -54,7 +54,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: secrets.DOCKERHUB_TOKEN != '' + if: ${{ secrets.DOCKERHUB_TOKEN != '' }} uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: username: ${{ secrets.DOCKERHUB_USERNAME }} diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.yml index cb3e3c72..73920aff 100644 --- a/.github/workflows/docker-publish.yml +++ b/.github/workflows/docker-publish.yml @@ -56,7 +56,7 @@ jobs: password: ${{ secrets.GITHUB_TOKEN }} - name: Log into Docker Hub registry - if: github.event_name != 'pull_request' && secrets.DOCKERHUB_TOKEN != '' + if: ${{ github.event_name != 'pull_request' && secrets.DOCKERHUB_TOKEN != '' }} uses: docker/login-action@3d58c274f17dffee475a5520cbe67f0a882c4dbb with: username: ${{ secrets.DOCKERHUB_USERNAME }}