From 535a299de5e360893b94354171c45d53d5faa8aa Mon Sep 17 00:00:00 2001 From: Felipe Santos Date: Wed, 16 Feb 2022 14:03:15 -0300 Subject: [PATCH] Fine tune default branch example Signed-off-by: GitHub --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 69759e8..092ad3c 100644 --- a/README.md +++ b/README.md @@ -610,7 +610,7 @@ is not `master`, use `type=raw` with a boolean expression: ```yaml tags: | - type=raw,value=latest,enable=${{ endsWith(github.ref, github.event.repository.default_branch) }} + type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }} ``` ### Global expressions