File tree Expand file tree Collapse file tree 1 file changed +4
-23
lines changed
Expand file tree Collapse file tree 1 file changed +4
-23
lines changed Original file line number Diff line number Diff line change 1616 fetch-depth : 0
1717 access-token : ${{ secrets.WORKFLOW_GIT_ACCESS_TOKEN }}
1818
19- - name : Configure Git
20- run : |
21- git config user.name "$GITHUB_ACTOR"
22- git config user.email "$GITHUB_ACTOR@users.noreply.github.com"
23-
2419 - name : Install Helm
2520 uses : azure/setup-helm@v3
2621 with :
@@ -31,25 +26,11 @@ jobs:
3126 with :
3227 python-version : 3.9
3328
34- - name : Extract chart version
35- run : echo "CHART_VERSION=${GITHUB_REF#refs/tags/}" >> $GITHUB_ENV
36-
37- - name : Install python dependencies
38- run : |
39- python -m pip install --upgrade pip
40- pip install pyyaml
41-
42- - name : Bump chart version
43- run : python ./.github/scripts/bump_chart_version.py $CHART_VERSION
44-
45- - name : Commit & Push
29+ - name : Extract chart version and remove v prefix
30+ id : extract_version
4631 run : |
47- git config --global user.name "$GITHUB_ACTOR"
48- git config --global user.email "$GITHUB_ACTOR@users.noreply.github.com"
49- git checkout -b main
50- git add .
51- git commit -m "Bump chart version to $CHART_VERSION"
52- git push origin main
32+ CHART_VERSION=$(echo ${{ github.ref }} | cut -d'/' -f3)
33+ echo "::set-output name=version::${CHART_VERSION#v}"
5334
5435 - name : Package whitebox chart
5536 run : |
You can’t perform that action at this time.
0 commit comments