Hoi, ik ben Martijn. ๐ ๐ณ๐ฑ
Learn more about me and my work on my website: https://martijnhols.nl/ (Dutch) or my blog: https://martijnhols.nl/gists (English)
This project forked from actions/cache
Enhanced actions/cache: Get full control over caching
License: MIT License
Hoi, ik ben Martijn. ๐ ๐ณ๐ฑ
Learn more about me and my work on my website: https://martijnhols.nl/ (Dutch) or my blog: https://martijnhols.nl/gists (English)
Given the following yaml:
- name: Check if cache key exists
uses: martijnhols/actions-cache/[email protected]
id: cache_exists
with:
path: .venv
key: ${{ runner.os }}-python-deps-${{ hashFiles('poetry.lock') }}
- name: Set up Python
uses: actions/setup-python@v4
if: steps.cache_exists.outputs.cache-hit != 'true'
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Restore dependency cache
uses: actions/cache@v3
if: steps.cache_exists.outputs.cache-hit != 'true'
id: deps-cache
with:
path: .venv
key: ${{ runner.os }}-python-deps-${{ hashFiles('poetry.lock') }}
Comparing the keys, they look identical (copy pasted manually from output):
Linux-python-deps-905d6047b1ef7816097d7c2ed5d59e9334470b45f129b2df87b40a4f33058e2a
Linux-python-deps-905d6047b1ef7816097d7c2ed5d59e9334470b45f129b2df87b40a4f33058e2a
I'm getting this warning in all of my pipelines.
Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: martijnhols/actions-cache
Posting it here for awareness.
Hello, first of all thank you for the alternative actions-cache. I use it to control when to restore and save cache.
Recently I started hitting 5GB limit when uploading cache. However Github has increased cache size limit to 10GB. https://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#usage-limits-and-eviction-policy
Hi !
Looking at the code, it seems that the branch managing the cache not hit in restore.ts doesn't set output before returning:
if (!cacheKey) {
const message = `Cache not found for input keys: ${[
primaryKey,
...restoreKeys
].join(", ")}`;
if (isCacheRequired()) {
throw new Error(message);
} else {
core.info(message);
// I expected to have an utils.setCacheHitOutput(false); here
return false;
}
}
I may be missing something here, If right I can write you the PR.
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.