From ef4609e2a4e3cefdd34a8cc6944c4784c30dc751 Mon Sep 17 00:00:00 2001 From: Vault Automation Date: Wed, 25 Mar 2026 21:30:54 -0600 Subject: [PATCH] pipeline(metadata): fix ce_in_enterprise detection (#13408) (#13414) Support detecting short or long base refs Signed-off-by: Ryan Cragun Co-authored-by: Ryan Cragun --- .github/actions/metadata/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/metadata/action.yml b/.github/actions/metadata/action.yml index 70801142eb..323f994e16 100644 --- a/.github/actions/metadata/action.yml +++ b/.github/actions/metadata/action.yml @@ -157,7 +157,7 @@ runs: base_ref='${{ github.event.pull_request.base.ref || github.event.base_ref || github.ref_name || github.event.branch || github.ref }}' is_ent_repo='true' is_ent_branch='true' - is_ce_in_enterprise=$([[ $base_ref == ce/* ]] && echo "true" || echo "false") + is_ce_in_enterprise=$([[ $base_ref == ce/* || $base_ref == refs/heads/ce/* ]] && echo "true" || echo "false") if [ "$is_ce_in_enterprise" = 'true' ]; then is_enterprise="false" is_ent_branch="false"