Create flow for automating byte-buddy version bump #161
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Automates bumping byte-buddy versions. Since bumps will, presumably, mostly be triggered off personal forks, it's not possible to push the bot commit directly to the branch. Additionally, without providing a personal access token, it's not possible for the github actions bot to directly trigger the test workflow. So, the flow is a little more convoluted than I'd like, but still feels more streamlined and preserves provenance. I've tested the following flow locally against my own fork:
byte-buddy-tag
(eg. test url change hughsimpson/kanela#10)please rerun tests
-- this gets around the restriction that bot commits can't trigger workflows.You'll have noticed that the new workflow is failing in this pr.. That's because, by adding the
byte-buddy-tag
file I've triggered the constraint, but the workflow permissions (specificallypull-requests: write
andcontents: write
) don't take effect until merged. Linked to my fork so you can see that it does, in fact, work once merged :)cc @ivantopo @dpsoft thoughts on this? I believe it could be made more streamlined with a personal access token set by a repo owner, but since I'm not one, this is pretty much the best I think I can do...