From a9eb2d5ae6dbe102585986f957f9d5ba34c7f1f1 Mon Sep 17 00:00:00 2001 From: Arjan H Date: Mon, 17 Apr 2023 20:50:30 +0200 Subject: [PATCH] Use edge label for default branch, branch name for the other branches --- .github/workflows/build-dockers.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-dockers.yml b/.github/workflows/build-dockers.yml index c9597d6..4e620b6 100644 --- a/.github/workflows/build-dockers.yml +++ b/.github/workflows/build-dockers.yml @@ -84,8 +84,8 @@ jobs: tags: | type=schedule,pattern={{date 'YYYYMMDD'}} type=match,pattern=v(.*),group=1 - type=edge,enable=${{is_default_branch}} - type=ref,event=branch,enable=${{!is_default_branch}} + type=edge,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} + type=ref,event=branch,enable=${{ github.ref != format('refs/heads/{0}', github.event.repository.default_branch) }} type=ref,event=pr type=sha