Skip to content

Commit 97fd2ee

Browse files
authored
Remove push stage from helm chart release workflow (#99)
1 parent 3c042bb commit 97fd2ee

File tree

1 file changed

+4
-23
lines changed

1 file changed

+4
-23
lines changed

.github/workflows/helm_charts_release.yml

Lines changed: 4 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,6 @@ jobs:
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: |

0 commit comments

Comments
 (0)