GuVAnj8Gv3RJ/NeosAccountDownloader

Prepare action caches DLLs unneccesarily

Closed this issue · 3 comments

Xlinka commented

I think I spotted the issue here. It looks like there's a small syntax glitch in your workflow file that's causing trouble. You're using steps.cache-neos-dlls.cache-hit to check if the cache was hit, but GitHub Actions syntax actually requires you to use steps.<step_id>.outputs.<output_name>.

(This is a guess from documentation and not been tested)

Context and expression syntax for GitHub Actions

Specifically, it mentions:

To use the output from a previous step, you can use steps.<step_id>.outputs.<output_name>

Also, the output key 'cache-hit' from the GitHub cache action is detailed here:

actions/cache

Which mentions:

cache-hit - A boolean to indicate an exact match was found for the key

Remember that this output will be a string, not a boolean, so your check should be like steps.cache-neos-dlls.outputs['cache-hit'] == 'false'.

Odd the documentation changed since I last read it. Checking now.

Fixed: f17e209

thanks