you're still getting a yarn install because you're never checking whether the cache hits. Honestly I don't know how the OP ever got this to work in the first place.
The whole point here is you need to create the cache, then see if it hits, and use whether or not it hits to determine whether or not you should take a given action.
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
You all should refer to this example:
github.com/actions/cache/blob/main...
you're still getting a yarn install because you're never checking whether the cache hits. Honestly I don't know how the OP ever got this to work in the first place.
The whole point here is you need to create the cache, then see if it hits, and use whether or not it hits to determine whether or not you should take a given action.