Skip to content

Commit e126d94

Browse files
authored
Merge pull request #281 from YunShiHang/main
Fix temporary version tag issues
2 parents 449871d + ef0b427 commit e126d94

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/auto-pr-ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,11 @@ jobs:
144144
- name: e2e
145145
run: |
146146
CONTAINER_TAG=$(git describe --tags --abbrev=8 --dirty)
147-
HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1 }'`
147+
HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1}'`
148+
CONDITION_COUNT=$(echo ${CONTAINER_TAG}|grep -o '-'|wc -l)
149+
if (( ${CONDITION_COUNT} >= 3 ));then
150+
HELM_CHART_VERSION=`echo ${CONTAINER_TAG}|awk -F "-" '{print $1"-"$2 }'`
151+
fi
148152
echo ${{ runner.name }}
149153
echo ${{ runner.os }}
150154
echo ${{ runner.arch }}

hack/deploy.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@ if [ "${IMG_VER}" != "" ]; then
4949
fi
5050

5151
#v0.1.1 --> 0.1.1 Match the helm chart version specification, remove the preceding prefix `v` character
52-
KUBEAN_CHART_VERSION="$(echo "${HELM_VER}" |sed 's/^v//g' )"
52+
# KUBEAN_CHART_VERSION="$(echo "${HELM_VER}" |sed 's/^v//g' )"
53+
KUBEAN_CHART_VERSION=${HELM_VER}
5354

5455
#ensure kube.conf without group-readable
5556
chmod 600 ${KUBE_CONF}

0 commit comments

Comments
 (0)