Repository navigation
ci: merge dependabot updates as the release app so they reach a release - #293
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Why
Dependabot updates are auto-merged with the
GITHUB_TOKEN, so the merge is attributed togithub-actionsand its push tomainstarts no other workflow: CI and release-please only run on the merge commit after the next manual merge. In addition, Dependabot committed every bump aschore(deps), so a dependency update never cut a release of the generator, its plugins or the web app image.What
dependabot-automerge.ymlbecomesdependabot-automerge-eligibility.yml: it decides withfetch-metadataand per-update-type path gates, also checkspull_request.user.login, and adds or removes theauto-mergelabel instead of merging.dependabot-automerge.ymlruns onworkflow_runof the eligibility workflow, which gets the Actions secrets, creates a token for the release-please app and enables auto-merge for a labelled pull request. The merge is attributed to the app, so its push starts the workflows onmain. A Dependabot-triggeredpull_requestrun only sees Dependabot secrets, hence the split.auto-mergelabel was created in the repository.docs/andtools/..github/dependabot.yml: Gradle and Docker bumps are committed asfix(deps), npm production bumps asfix(deps)and npm development bumps aschore(deps-dev). GitHub Actions staychore.Verification
actionlintpasses on both workflows anddependabot.ymlparses.mergedByshows the app, and CI and release-please run on the merge commit.Out of scope / Follow-ups
prefix-developmentnor groups by dependency type, so every Gradle bump, test and build dependencies included, cuts a release that publishes to every registry. This is intended; if it turns out too noisy, Gradle can go back tochoreand runtime bumps get released by hand.chore(deps-dev).Refs Miragon/skills#49