From 412a1ecf93067c3c373ca0a14e334a85a8a400a2 Mon Sep 17 00:00:00 2001 From: Opliko Date: Sat, 13 May 2023 20:36:59 +0200 Subject: [PATCH] ci: use GitHub Actions expression instead of handlebars template (#11599) Apparently Docker Meta Actions overrides, not merely adds, handlebars helpers. So `#if` just doesn't exist and errors out... As such here is an equivalent using GitHub Actions expression (and this time I tested that it works...) --- .github/workflows/docker.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docker.yml b/.github/workflows/docker.yml index 2451d9515c..ae2e03501a 100644 --- a/.github/workflows/docker.yml +++ b/.github/workflows/docker.yml @@ -47,7 +47,7 @@ jobs: type=semver,pattern={{major}}.{{minor}} type=semver,pattern={{major}}.x type=raw,value=latest,enable={{is_default_branch}} - type=ref,event=branch,enable={{#if is_default_branch}}false{{else}}true{{/if}} + type=ref,event=branch,enable=${{ github.event.repository.default_branch != github.ref }} - name: Build and push Docker images uses: docker/build-push-action@v4