Skip to content

Commit

Permalink
Merge pull request #1032 from elezar/fix-release-helm
Browse files Browse the repository at this point in the history
[no-relnote] Specify github token in helm release
  • Loading branch information
elezar authored Oct 31, 2024
2 parents 8a0d3e1 + 6d7b50e commit 9c63701
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/publish-helm.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:

- name: Update helm index
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "Github Actions"
git config user.email "[email protected]"
Expand Down
4 changes: 4 additions & 0 deletions hack/update-helm-index.sh
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,10 @@ if [[ -z ${VERSION} ]]; then
VERSION="v$VERSION"
fi

# We need to ensure that the user the folder is correct:
git -C ${HELM_REPO_PATH} config user.email "$(git config --get user.email)"
git -C ${HELM_REPO_PATH} config user.name "$(git config --get user.name)"

# Create a new commit
echo "Committing changes: \n${changes}"
git -C $HELM_REPO_PATH add index.yaml stable
Expand Down

0 comments on commit 9c63701

Please sign in to comment.