Open cwaldren-ld opened 9 months ago
@cwaldren-ld you should add permissions for actions and enable Allow GitHub Actions to create and approve pull requests
in repo's "Settings > Actions > General"
jobs:
release-please:
+ permissions:
+ contents: write
+ pull-requests: write
+ id-token: write
TL;DR
As part of the release process, I wanted to update a constant defined in a reusable Github workflow. If this file is added to
extra-files
, it causes an extremely ambiguous exception to be thrown.For example:
The solution is to not try and update workflow files via
release-please
directly.Expected behavior
I expected the file to be updated.
Observed behavior
The action throws an exception.
Action YAML
Log output
Additional information
Note: in the log output, I had to fork the action and add extra debug logs. This is because the action doesn't log the actual Github error that is returned in the "Error adding to tree: " condition.
See here for (what I believe is) the underlying cause of the error: https://github.com/orgs/community/discussions/35410#discussioncomment-7645702