Skip to content

Commit 9de1dd0

Browse files
authored
Merge pull request #1196 from elezar/backport-release-fix
[no-relnote] Set git user name and email in subfolder repo
2 parents 3c37819 + 88d6df4 commit 9de1dd0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/publish-helm.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939

4040
- name: Update helm index
4141
env:
42-
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343
run: |
4444
git config user.name "Github Actions"
4545
git config user.email "[email protected]"

hack/update-helm-index.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ if [[ -z ${VERSION} ]]; then
144144
VERSION="v$VERSION"
145145
fi
146146

147+
# We need to ensure that the user the folder is correct:
148+
git -C ${HELM_REPO_PATH} config user.email "$(git config --get user.email)"
149+
git -C ${HELM_REPO_PATH} config user.name "$(git config --get user.name)"
150+
147151
# Create a new commit
148152
echo "Committing changes: \n${changes}"
149153
git -C $HELM_REPO_PATH add index.yaml stable

0 commit comments

Comments
 (0)