StefMa / pkl-gha

A Pkl (https://pkl-lang.org/) template for writing GitHub Action workflows
MIT License
7 stars 0 forks source link

How to update `pkl-gha` created files with dependabot (yaml) updates? #4

Open StefMa opened 1 month ago

StefMa commented 1 month ago

Think about how to update the pkl files with dependabot. Dependabot can automatically update github yaml files. But with that, our check that all pkl files are converted fails. See https://github.com/StefMa/pkl-gha/pull/3

Maybe we should add another workflow that runs after dependabot created a PR, update the pkl files and commits it there... 🤔

How to do that? 😁

StefMa commented 2 weeks ago

This could be done with that action probably https://github.com/dependabot/fetch-metadata

See also the docs here: https://docs.github.com/en/code-security/dependabot/working-with-dependabot/automating-dependabot-with-github-actions

The action above has an output of updated dependencies. We can simply update the respective pkl file (too) and push this changes to the PR... 💭