hashFiles()
cannot be correctly used with github.action_path
in composite actions
#3765
Labels
bug
Something isn't working
Describe the bug
hashFiles()
does not permit.
and..
segments in its arguments. However, when using a composite action from the same repository,github.action_path
contains a trailing/./
, as the argument touses
has to begin with.
to be recognized as a path.To Reproduce
Steps to reproduce the behavior:
.github/actions/foo
that invokeshashFiles(format('{0}/bar.txt', github.action_path))
.uses: ./.github/actions/foo
and trigger the workflow.Expected behavior
It should be possible to use
hashFiles()
withgithub.action_path
in a composite action. It shouldn't be necessary to have a separate Bash step that only exists to trim the last two characters off the end of the path.Runner Version and Platform
Version of your runner? 2.322.0
OS of the machine running the runner? Ubuntu 24.0.2 LTS
What's not working?
Job Log Output
If applicable, include the relevant part of the job / step log output here. All sensitive information should already be masked out, but please double-check before pasting here.
N/A
Runner and Worker's Diagnostic Logs
If applicable, add relevant diagnostic log information. Logs are located in the runner's
_diag
folder. The runner logs are prefixed withRunner_
and the worker logs are prefixed withWorker_
. Each job run correlates to a worker log. All sensitive information should already be masked out, but please double-check before pasting here.N/A
The text was updated successfully, but these errors were encountered: