Skip to content

Commit f2e68fe

Browse files
Merge pull request #43 from mozilla/update-gha
Updating gha to keep branch name, instead of swap to 'stg'
2 parents 56d317d + 787ebfa commit f2e68fe

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

.github/workflows/build-image.yaml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,8 @@ jobs:
2222
echo $version_pattern;
2323
if [[ ${GITHUB_REF} =~ $version_pattern ]]; then
2424
echo "::set-output name=tag::${GITHUB_REF##*/}"
25-
elif [ ${GITHUB_REF##*/} = "main" ]; then
26-
echo "::set-output name=tag::stg-$CI_COMMIT_SHORT_SHA"
2725
else
28-
echo "::set-output name=tag::$CI_COMMIT_SHORT_SHA"
26+
echo "::set-output name=tag::${GITHUB_REF##*/}-$CI_COMMIT_SHORT_SHA"
2927
fi
3028
env:
3129
version_pattern: "tags\\/v[0-9]+\\.[0-9]+\\.[0-9]+"

0 commit comments

Comments
 (0)