Currently, specifying a pub-cache-path like in the README doesn't do anything. This PR fixes this by adding the input. I've set up the priority like this:
If the environmental variable PUB_CACHE is specified before using the action, continue using it.
If PUB_CACHE_PATH is specified and is not the default value, then use it.
In every case, the value will be re-exported as the environment variable by the name of PUB_CACHE, written to the action's output in the variable PUB-CACHE-PATH, and its bin sub-directory appended to PATH
Currently, specifying a
pub-cache-path
like in the README doesn't do anything. This PR fixes this by adding the input. I've set up the priority like this:PUB_CACHE
is specified before using the action, continue using it.PUB_CACHE_PATH
is specified and is not the default value, then use it.In every case, the value will be re-exported as the environment variable by the name of
PUB_CACHE
, written to the action's output in the variablePUB-CACHE-PATH
, and itsbin
sub-directory appended toPATH
resolves https://github.com/subosito/flutter-action/issues/278 resolves https://github.com/subosito/flutter-action/issues/277