Skip to content

Commit

Permalink
Set Git user
Browse files Browse the repository at this point in the history
sbrunner committed Nov 28, 2024

Verified

This commit was signed with the committer’s verified signature.
sbrunner Stéphane Brunner
1 parent 77cf320 commit 68ccbfd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tag_publish/publish.py
Original file line number Diff line number Diff line change
@@ -290,6 +290,12 @@ def helm(folder: str, version: str, owner: str, repo: str, commit_sha: str, toke
if dependency["repository"].startswith("https://"):
subprocess.run(["helm", "repo", "add", str(index), dependency["repository"]], check=True)

if subprocess.run(["git", "config", "user.email"], capture_output=True).returncode != 0: # pylint: disable=subprocess-run-check
subprocess.run(["git", "config", "--global", "user.email", "[email protected]"], check=True)
if subprocess.run(["git", "config", "user.name"], capture_output=True).returncode != 0: # pylint: disable=subprocess-run-check
subprocess.run(
["git", "config", "--global", "user.name", "tag-publish (GitHub Action)"], check=True
)
subprocess.run(["cr", "package", folder], check=True)
subprocess.run(
[

0 comments on commit 68ccbfd

Please sign in to comment.