julia-actions / cache

A shortcut action to cache Julia artifacts, packages, and registries.
MIT License
39 stars 9 forks source link

Warn if the user is also using `actions/cache` directly? #122

Open DilumAluthge opened 6 months ago

DilumAluthge commented 6 months ago

A user may use both julia-actions/cache and actions/cache without realizing. Sometimes this may be intentional, but many times it may be accidental.

Can we detect if the user is also directly using actions/cache in the same job, and print a (non-fatal) warning if they are?

We can have an optional input that allows users to disable this warning; that way, if the user is indeed intentionally calling both julia-actions/cache and actions/cache, they can disable the warning and reduce the noise.

IanButterworth commented 6 months ago

In my experience in production setups it's fairly common to use both.