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

CI fixes #217

Merged
merged 4 commits into from
Jun 6, 2024
Merged

CI fixes #217

merged 4 commits into from
Jun 6, 2024

Conversation

MattSturgeon
Copy link
Member

@MattSturgeon MattSturgeon commented Jun 3, 2024

  • Enable build CI on PRs
    This should make the build workflow run on PRs too, as originally intended.
    It may end up running twice when pushing to PRs on non-fork branches though...

  • Use owner's PAT in bump-version CI
    To bypass branch protection, we can use a Personal Access Token generated on @hashalite's account. Should be added to the repo secrets as "HASHALITE_PAT".

  • Ensure bump-version commits as a bot
    This is the default anyway for the committer, but for author stefanzweifel/git-auto-commit-action uses the last commit's author, which may or may not be the same as the CI's triggerer (github.actor).

@MattSturgeon MattSturgeon added the dev Only affects developers label Jun 3, 2024
@MattSturgeon MattSturgeon requested a review from hashalite June 3, 2024 20:51
@hashalite
Copy link
Collaborator

It may end up running twice when pushing to PRs on non-fork branches though...

Someone seems to have found a fix for this here:
zopefoundation/meta#146

This is to bypass branch-protection rules on `main`.
Use actor's username for the commit author, but use the bot email since
we don't have access to user's display names or emails.
@MattSturgeon
Copy link
Member Author

Thanks for the feedback. This is ready for another review 😄

@MattSturgeon MattSturgeon merged commit f6fd706 into MinecraftFreecam:main Jun 6, 2024
1 check passed
@MattSturgeon MattSturgeon deleted the ci/build-prs branch June 6, 2024 23:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev Only affects developers
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants