Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support creating tags as a different user #33

Merged
merged 1 commit into from
May 2, 2022

Conversation

jordemort
Copy link
Contributor

  • Add a tag_as_user input to override the git user.name used when creating tags
  • Add a tag_as_email input to override the git user.email used when creating tags
  • If a github_token has been provided, use that when pushing tags instead of the default Actions token

GitHub Actions won't be triggered for things that use the GITHUB_TOKEN that is automatically generated for each action run - this is to prevent infinite loops. Using a different token for pushing the the tag allows the push to trigger other Actions.

- Add a `tag_as_user` input to override the git `user.name` used when creating tags
- Add a `tag_as_email` input to override the git `user.email` used when creating tags
- If a `github_token` has been provided, use that when pushing tags instead of the default Actions token

Using a different token for pushing the the tag allows the push to trigger other Actions.
Copy link
Owner

@haya14busa haya14busa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your PR!

@haya14busa haya14busa merged commit 425a06a into haya14busa:master May 2, 2022
@github-actions
Copy link
Contributor

github-actions bot commented May 2, 2022

🚀 [bumpr] Bumped! New version:v1.8.0 Changes:v1.7.2...v1.8.0

@jordemort jordemort deleted the use-token-for-push branch May 2, 2022 03:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants