Skip to content

ci(main-wkflow): fix unknown git user before tag creation - #1053

Merged
codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:ci/fix-git-release-tag-update
Oct 8, 2024
Merged

codejedi365 merged 1 commit into
python-semantic-release:masterfrom
codejedi365:ci/fix-git-release-tag-update

Conversation

@codejedi365

Copy link
Copy Markdown
Contributor

Purpose

  • Correct the mistake I had releasing v9.10.0 where it crashed after semantic-release was completed

Rationale

I wanted to have some git commands run after the release to create some moving short reference tags and ends up in the CI git is not configured. Because of that when I tried to do a git tag it failed and complained about no name or email. This corrects that issue by setting the environment variable for the committer information. I tested this on my own fork and it released successfully. Oddly enough, I tested just the GIT_AUTHOR_{NAME,EMAIL} vars and it fails but if you have GIT_COMMITTER_{NAME,EMAIL} by itself it is fine.

How did you test?

Ran multiple releases on my fork as I could reverse it immediately. I probably should of done that when I initially made the change instead of hoping it would work. ( I was confident in my commands but I forgot about the non-configured git).

@codejedi365
codejedi365 merged commit 31b615a into python-semantic-release:master Oct 8, 2024
@codejedi365
codejedi365 deleted the ci/fix-git-release-tag-update branch October 8, 2024 02:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant