Skip to content

Commit 3ebbc1c

Browse files
author
Rub21
committed
Update version generation
1 parent 0b8e61e commit 3ebbc1c

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/chartpress.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,13 @@ jobs:
3333
GITHUB_TOKEN: ${{ secrets.REPO_TOKEN }}
3434
GITHUB_EVENT_NAME: ${{ github.event_name }}
3535
run: |
36-
TAG=dev
37-
if [[ $GIT_BRANCH_NAME = "main" && $GITHUB_EVENT_NAME = "push" ]]
36+
if [[ $GIT_BRANCH_NAME = "versioning" ]]
3837
then
39-
TAG=stable
38+
echo chartpress --push --publish-chart --tag ${OSM_SEED_VERSION}
39+
elif [[ $GIT_BRANCH_NAME = "develop" ]]
40+
then
41+
TAG=dev
42+
echo chartpress --push --publish-chart --tag ${OSM_SEED_VERSION}-$TAG.h$SHORT_GITHUB_SHA
43+
else
44+
echo chartpress --push --publish-chart
4045
fi
41-
chartpress --push --publish-chart --tag ${OSM_SEED_VERSION}-$TAG.h$SHORT_GITHUB_SHA

0 commit comments

Comments
 (0)