-
I'm facing an issue where the cache key in my GitHub Actions workflow doesn't change even after modifying or deleting https://github.com/sijunnoh/github-action-test Here is the relevant part of my workflow:
I have read the following documentation: HashFiles expression documentation Despite modifying .tsx files, the cache key always remains the same. Could someone point out what I might be missing here?
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @sijunnoh first thing I'd advise is upgrading |
Beta Was this translation helpful? Give feedback.
I modified the cache key from
${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }}
to${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/*.[jt]s', '**/*.[jt]sx') }}
.Now cache key updates as expected. Thanks for the help! @JoannaaKL