File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -24,16 +24,18 @@ jobs:
24
24
GIT_BRANCH_NAME=${GITHUB_BASE_REF:-${GITHUB_REF#refs/heads/}}
25
25
GIT_BRANCH_NAME=${GIT_BRANCH_NAME/\//_}
26
26
OSM_SEED_VERSION=$(jq -r '.version' < package.json)
27
+ SHORT_GITHUB_SHA=${GITHUB_SHA::7}
27
28
echo "GIT_BRANCH_NAME=$GIT_BRANCH_NAME" >> $GITHUB_ENV
28
29
echo "OSM_SEED_VERSION=$OSM_SEED_VERSION" >> $GITHUB_ENV
30
+ echo "SHORT_GITHUB_SHA=$SHORT_GITHUB_SHA" >> $GITHUB_ENV
29
31
- name : Run Chartpress
30
32
env :
31
33
GITHUB_TOKEN : ${{ secrets.REPO_TOKEN }}
32
34
GITHUB_EVENT_NAME : ${{ github.event_name }}
33
35
run : |
34
- if [[ $GIT_BRANCH_NAME = "develop" && $GITHUB_EVENT_NAME = "push" ]]
36
+ TAG=dev
37
+ if [[ $GIT_BRANCH_NAME = "main" && $GITHUB_EVENT_NAME = "push" ]]
35
38
then
36
- chartpress --push --publish-chart --tag ${OSM_SEED_VERSION}
37
- else
38
- chartpress --push --publish-chart
39
+ TAG=stable
39
40
fi
41
+ chartpress --push --publish-chart --tag ${OSM_SEED_VERSION}-$TAG.h$SHORT_GITHUB_SHA
You can’t perform that action at this time.
0 commit comments