Skip to content

Commit b781c35

Browse files
chore(chart): fixing gh action issues reloader chart to 0.1.7
1 parent 9314a77 commit b781c35

2 files changed

Lines changed: 16 additions & 2 deletions

File tree

.github/workflows/release-helm-chart-by-branch.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ jobs:
2828
with:
2929
fetch-depth: 0
3030

31+
- name: Configure Git
32+
run: |
33+
git config user.name "${GITHUB_ACTOR}"
34+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
35+
3136
- name: Set up Helm
3237
uses: azure/setup-helm@v4
3338
with:
@@ -95,6 +100,9 @@ jobs:
95100
git add .nojekyll
96101
git commit -m "init gh-pages"
97102
fi
103+
# Ensure git identity is present (in case earlier step was skipped)
104+
git config user.name "${GITHUB_ACTOR}" || true
105+
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com" || true
98106
mkdir -p branches/$SAFE
99107
cp dist/*.tgz branches/$SAFE/
100108
if [ -f branches/$SAFE/index.yaml ]; then
@@ -103,8 +111,14 @@ jobs:
103111
helm repo index branches/$SAFE --url "https://${{ github.repository_owner }}.github.io/${GITHUB_REPOSITORY#*/}/branches/${SAFE}"
104112
fi
105113
git add branches/$SAFE
106-
git commit -m "chore(chart): publish reloader ${{ steps.newver.outputs.version }} for branch $SAFE" || echo "No changes"
114+
if git diff --cached --quiet; then
115+
echo "No changes to commit for branch repository"
116+
else
117+
git commit -m "chore(chart): publish reloader ${{ steps.newver.outputs.version }} for branch $SAFE"
118+
fi
107119
git push origin gh-pages
120+
# Clean working tree to avoid checkout conflicts
121+
git reset --hard
108122
git checkout "${GITHUB_REF_NAME}"
109123
110124
- name: Create chart tag

deployments/kubernetes/chart/reloader/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
apiVersion: v1
22
name: reloader
33
description: Reloader chart that runs on kubernetes
4-
version: 0.1.6
4+
version: 0.1.7
55
appVersion: v1.4.10
66
keywords:
77
- Reloader

0 commit comments

Comments
 (0)