Skip to content

Commit efefa09

Browse files
ELI 442: fix - use tag from input - preprod/prod deployment pipeline(#432)
1 parent 27dacb3 commit efefa09

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/base-deploy.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
required: true
99
type: string
1010
ref:
11-
description: "Git ref to deploy (branch/tag/SHA). For prod, supply the RC tag to promote."
11+
description: "Git ref to deploy (dev-tag). For prod, supply the RC tag to promote."
1212
required: true
1313
type: string
1414
release_type:
@@ -83,8 +83,8 @@ jobs:
8383
SHA="${{ github.event.workflow_run.head_sha }}"
8484
TAG=$(git tag --points-at "$SHA" | grep '^dev-' | head -n1 || true)
8585
if [ -z "$TAG" ]; then
86-
echo "No dev-* tag found on $SHA" >&2
87-
exit 1
86+
echo "Using the dev tag provided in the input field" >&2
87+
TAG="${{ inputs.ref }}"
8888
fi
8989
echo "name=$TAG" >> $GITHUB_OUTPUT
9090
echo "Resolved tag: $TAG"

0 commit comments

Comments
 (0)