[BUG] warnUnsupportedRESTAPIInputs
failing with composite action & use_rest_api
#1865
Closed
4 tasks done
Labels
bug
Something isn't working
Is there an existing issue for this?
Does this issue exist in the latest version?
Describe the bug?
The changes in #1853 seem to prevent
tj-actions/changed-files
from being used within a composite action while using the newinputs.use_rest_api: true
.Initial Error
This is due to the
readFile(actionPath)
inwarnUnsupportedRESTAPIInputs
usingenv.GITHUB_ACTION_PATH
. This variable points to a directory, not a file.Adding
path.join(actionPath, "action.yml")
around here will resolve theEISDIR
from throwing an error.Followup Error
Unfortunately, once I resolved the above error,
warnUnsupportedRESTAPIInputs
still fails to run successfully.This is due to the contents of
${GITHUB_ACTION_PATH}/action.yml
being the composite action's yaml and not the one associated withtj-actions/changed-files
. This means there are noinputs
anddefault
cannot be pulled.To Reproduce
This composite action, when invoked from a workflow, will cause the issue.
What OS are you seeing the problem on?
ubuntu-latest or ubuntu-22.04
Expected behavior?
tj-actions/changed-files
can be used in a composite action withinputs.use_rest_api: true
.Relevant log output
Relevant logs shown above in the bug description.
Has all relevant logs been included?
Anything else?
Sorry this is a bug and not a PR! I was all set to send a fix for the
EISDIR
error but the followup error doesn't have a clear fix as a non-maintainer. Figured an issue would be easier.Code of Conduct
The text was updated successfully, but these errors were encountered: