very_good_templates
very_good_templates copied to clipboard
Use Dependabot to Verify Templates once generated
Description
Given the template model the pubspec.yaml that we have in each template has the ability to have an "invalid" pubspec given variables and parameters that we have in the file for generation time. Example being https://github.com/VeryGoodOpenSource/very_good_templates/blob/main/very_good_flutter_package/brick/%7B%7Bproject_name.snakeCase()%7D%7D/pubspec.yaml
We still have a need to keep these templates and their dependencies up to date but don't want to have to do this manually. The idea being that we can have a GitHub Action that uses the Dependabot CLI in order to generate a template, run the CLI to see if there are updates, and then open issues to do the updates manually.
Requirements
- There is a GitHub Action for each of the templates.
- The Actions run on a daily basis
- The action will build a template and run the Dependabot CLI.
- If the Dependabot CLI does not detect any needed updates they exit gracefully.
- If the Dependabot CLI does detect changes needed then an issue is opened up on the repo.
- The issue that is opened up has a title of "chore: bump PACAKGE_NAME_HERE from CURRENT_VERSION to NEW_VERSION"
- The description of the issue contains a link to the package that is being updated on pub.dev