Closed zomars closed 1 year ago
Hi @zomars ,
I tried forking your repo and trying the same but looks like I was missing something.
Anyways, I suspect your pattern doesn't checks for all the repos nested and only root repo, that's why you must be facing the issue.
Can you please try including all folder? Something like this?
${{ hashFiles('**/**.[jt]s', '**/**.[jt]sx') }}
Your suggestion worked although it is inconsistent with the GitHub docs
I think wildcards are handled by actions/glob package. Maybe you can try opening an issue there and ask them if the docs are incorrect or if there's any bug that they might need to fix as a follow up to this.
Closing this as resolved from our end.
We have this hashing function that in theory should hash all
.js, .ts, .jsx and .tsx
files:${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
(got this snippet from Next.js docs) but when debugging we only get the root.ts
and.js
files:This is the resulting logs with debug enabled:
Here's a test run:
https://github.com/zomars/cal.com/actions/runs/4289686040/jobs/7473010660