diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 78a4f72..3878f60 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -15,7 +15,7 @@ jobs: steps: - uses: actions/checkout@master - name: Build and Publish to Registry - if: "! ${{ startsWith(github.ref, 'refs/tags/') }}" + if: "!(startsWith(github.ref, 'refs/tags/'))" uses: docker/build-push-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }} @@ -24,7 +24,7 @@ jobs: dockerfile: Dockerfile tags: latest - name: Build and Publish to Registry with Release Tag - if: ${{ startsWith(github.ref, 'refs/tags/') }} + if: startsWith(github.ref, 'refs/tags/') uses: docker/build-push-action@v1 with: username: ${{ secrets.DOCKER_USERNAME }}