Aman-Mittal opened a new pull request, #174:
URL: https://github.com/apache/fineract-backoffice-ui/pull/174
The job checked out `inputs.base_branch || 'develop'` while the workflow
file itself came from the default branch, so it ran main's YAML against a
different tree. The scripts it calls live in the repository, and on `develop`
they do not exist:
Error: Cannot find module '.../scripts/spec-diff-summary.mjs'
By then it had already resolved the image digest, pulled it, extracted the
spec and regenerated the client — all discarded.
Dropping the `ref:` override makes the checked-out tree the one the workflow
came from, which is the only tree guaranteed to carry its own tooling. The PR
now targets `github.ref_name` for the same reason: with a base on some other
branch the diff would have carried whatever else separates the two.
The `base_branch` input is gone rather than re-pointed. It could only ever
be set to a branch that also contains these scripts, which is the branch the
workflow ran from — so it was a way to break the job, not to configure it.
Retarget the PR in the UI if it needs to go elsewhere.
A preflight now asserts the four scripts exist, so a future drift fails in
the first seconds with a legible message instead of after the expensive work.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]