diff --git a/.github/workflows/build_addon.yml b/.github/workflows/build_addon.yml index f8e8833..25863d0 100644 --- a/.github/workflows/build_addon.yml +++ b/.github/workflows/build_addon.yml @@ -82,7 +82,7 @@ jobs: - name: Build and push ${{matrix.arch}} uses: docker/build-push-action@v2 with: - push: ${{ github.ref == 'refs/heads/master' || github.ref == 'refs/tags/*' }} + push: ${{ github.ref == 'refs/heads/master' || startsWith('refs/tags/', github.ref) }} context: ./${{env.TARGET}} tags: ${{env.TAGS}} labels: io.hass.name=${{env.NAME}}, io.hass.description=${{env.DESCRIPTION}}, io.hass.url=${{env.URL}}, io.hass.arch=${{matrix.arch}}, io.hass.version=${{env.VERSION}}, io.hass.type=addon