Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds opt-in caching #23

Merged
merged 4 commits into from May 19, 2022
Merged

Adds opt-in caching #23

merged 4 commits into from May 19, 2022

Conversation

t0yv0
Copy link
Contributor

@t0yv0 t0yv0 commented May 19, 2022

Solves #21 long backoff on rate limit issues.

The opt-in cache avoids using oktokit API to scan releases and tags when there is a cache hit.

The downside is that this action becomes larger as it now links to actions/cache.

await cache.saveCache([dest], cacheKey);
}

core.addPath(dest);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is a change here even when not opting into the cache, the path where the tool is installed is changing from a random UUID path to a path under hostedtoolcache (RUNNER_TOOL_CACHE) based on owner, repo, version, architecture (dest var). I think this should be ok. hostedtoolcache is not preserved across GHA worker runs but may be preserved across self-hosted runs.

@t0yv0
Copy link
Contributor Author

t0yv0 commented May 19, 2022

@jaxxstorm @stack72 @dixler

@jaxxstorm jaxxstorm merged commit cceeb32 into jaxxstorm:master May 19, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants