8000 Do not save cache if files are empty · Issue #624 · actions/cache · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Do not save cache if files are empty #624
Closed
@boardfish

Description

@boardfish

Even if the target files are not present or empty, a cache key is saved:

Post job cleanup.
/usr/bin/tar --posix --use-compress-program zstd -T0 -cf cache.tzst -P -C /home/runner/work/boardfish/project --files-from manifest.txt
Cache Size: ~0 MB (22 B)
Cache saved successfully
Cache saved with key: Linux-project-data-17007abbc08...

I'd prefer not to register a key or save a cache in this particular instance.

For now, I'll need to check whether the file exists manually. But I'd rather not have to do that and check against a cache hit instead.

- name: TEST  | Check crystalball map is available
  id: check_crystalball_map_exists
  uses: andstor/file-existence-action@v1
  with:
    files: "tmp/crystalball_data.yml"

Metadata

Metadata

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0