From 7c0ce5c282845efcd506241c65bb522a9fd0e583 Mon Sep 17 00:00:00 2001 From: mauwii Date: Sun, 5 Mar 2023 02:58:13 +0100 Subject: [PATCH] fix push expression - make use of `github.ref_type` --- .github/workflows/build-container.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build-container.yml b/.github/workflows/build-container.yml index 1ba03a0e2f..0fabbdf038 100644 --- a/.github/workflows/build-container.yml +++ b/.github/workflows/build-container.yml @@ -91,7 +91,7 @@ jobs: context: . file: ${{ env.DOCKERFILE }} platforms: ${{ env.PLATFORMS }} - push: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/tags/*' }} + push: ${{ github.ref == 'refs/heads/main' || github.ref_type == 'tag' }} tags: ${{ steps.meta.outputs.tags }} labels: ${{ steps.meta.outputs.labels }} build-args: PIP_EXTRA_INDEX_URL=${{ matrix.pip-extra-index-url }}