From a0ffe09d0a29cc84f2d3517fca3f0616e88e4c8b Mon Sep 17 00:00:00 2001 From: Martin Ohmann Date: Mon, 2 Dec 2024 11:44:49 +0100 Subject: [PATCH] fix(release): check for `release_created == 'true'` The docs of the `release-please-action` state that `release_created` is `false` if no release was created. https://github.com/googleapis/release-please-action?tab=readme-ov-file#root-component-outputs This is incorrect, `release_created` is empty in this case. An empty string in the `enable` attribute leads to an `Invalid value` error: https://github.com/Bonial-International-GmbH/sops-check/actions/runs/12117567635/job/33780291842 We'll explicitly compare `release_created` to `'true'` to make sure the result can only be `true` or `false`, but nothing else. --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 44956ab..e6ca262 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -53,7 +53,7 @@ jobs: ghcr.io/bonial-international-gmbh/sops-check tags: | type=sha - type=raw,value=${{ needs.release-please.outputs.tag_name }},enable=${{ needs.release-please.outputs.release_created }} + type=raw,value=${{ needs.release-please.outputs.tag_name }},enable=${{ needs.release-please.outputs.release_created == 'true' }} type=raw,value=latest - name: Build and push