File tree Expand file tree Collapse file tree
deployments/kubernetes/chart/reloader Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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 :
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
Original file line number Diff line number Diff line change 11apiVersion : v1
22name : reloader
33description : Reloader chart that runs on kubernetes
4- version : 0.1.6
4+ version : 0.1.7
55appVersion : v1.4.10
66keywords :
77 - Reloader
You can’t perform that action at this time.
0 commit comments