Closed raphink closed 2 years ago
FYI, this might be difficult to accomplish. We generate the file changes in code and do not have a clone of the repository while creating the release pull request.
Thanks for your feedback @chingor13. I have 3 files I need to update with the version number:
target_revision
variable which should default to the versionconfig.toml
file for gohugo to make the website point to the right version of the docsantora.yml
file to generate the docs for the right versionIs there already a way to achieve this with release-please?
I don't see a great way right now, but 2 options moving forward.
Another option could be to use a manifest (multi-component) configuration with a plugin like the one requested in #1075. This would only work if the 3 files you want to update are in different directories though and would not be as globally applicable as options 1 and 2.
It would be useful to be able to launch a custom script from the GitHub repo to update specific files without having to create a new type of release strategy in release-please.
Something like:
The script would then receive the version number as parameter and be able to perform actions on the repository before release-please commits the files to the branch.