mirror of
https://github.com/edgelesssys/constellation.git
synced 2024-10-01 01:36:09 -04:00
ci: fix labeling when building on other branches
than github.head_ref, e.g., during release Signed-off-by: Paul Meyer <49727155+katexochen@users.noreply.github.com>
This commit is contained in:
parent
e4b5655646
commit
cc6006c6ea
2
.github/actions/build_ko/action.yml
vendored
2
.github/actions/build_ko/action.yml
vendored
@ -69,7 +69,7 @@ runs:
|
||||
tags=""
|
||||
sbom=""
|
||||
|
||||
if [[ "${{ github.ref_name }}" == "${{ github.event.repository.default_branch }}" ]]; then
|
||||
if [[ "$(git branch --show-current)" == "${{ github.event.repository.default_branch }}" ]]; then
|
||||
tags="latest"
|
||||
else
|
||||
tags="${{ github.sha }}"
|
||||
|
Loading…
Reference in New Issue
Block a user