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 GitHub Actions update in cookiecutter-level project leveraging Dependabot CLI #64

Open
jcfr opened this issue Aug 20, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jcfr
Copy link
Collaborator

jcfr commented Aug 20, 2024

Improve the CI pipeline by integrating a scheduled workflow that leverages the Dependabot CLI1 to update dependencies within the cookiecutter project. The project’s .yml template files include Jinja2 directives like {% raw %} and {% endraw %}, which require special handling.

To achieve this, the update process can be done with the following stages:

  • Identify Template Directives:
    • Detect lines in .yml file that contain the {% raw %} and {% endraw %} template Directives.
  • Project Configuration:
    • Configure the project to support running the Dependabot CLI
  • Execute Dependabot CLI
    • Run Dependabot CLI to update GitHub Actions dependencies within the configured project
  • Reintegrate Template Changes:
    • Reintegrate the updated lines back into the .yml files while preserving the original template structure.
  • Generate Pull Request:
    • Automatically generate a pull request with the updated .yml files.

This approach ensures the proper handling of templated files while keeping dependencies up-to-date

Footnotes

  1. https://github.com/dependabot/cli

@jcfr jcfr added the enhancement New feature or request label Aug 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant