Skip to content

Commit

Permalink
fix(create_rc): Add git config to be able to push tag
Browse files Browse the repository at this point in the history
  • Loading branch information
chouetz committed Jul 12, 2024
1 parent 21795c4 commit 2b84ed9
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tasks/release.py
Original file line number Diff line number Diff line change
Expand Up @@ -931,6 +931,10 @@ def check_for_changes(ctx, release_branch, warning_mode=False):
with clone(ctx, repo_name, repo['branch'], options="--filter=blob:none --no-checkout"):
# We can add the new commit now to be used by release candidate creation
print(f"Creating new tag {next_version} on {repo_name}", file=sys.stderr)
ctx.run('git config user.name "github-actions[bot]"', hide=True)
ctx.run(
'git config user.email "41898282+github-actions[bot]@users.noreply.github.com"', hide=True
)
ctx.run(f"git tag {next_version}")
ctx.run(f"git push origin tag {next_version}")
# This repo has changes, the next check is not needed
Expand Down

0 comments on commit 2b84ed9

Please sign in to comment.