Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

add lookup only#56

Merged
jackieli-tes merged 6 commits intomaintespkg/actions-cache:mainfrom
SW-26574tespkg/actions-cache:SW-26574Copy head branch name to clipboard
May 20, 2025
Merged

add lookup only#56
jackieli-tes merged 6 commits intomaintespkg/actions-cache:mainfrom
SW-26574tespkg/actions-cache:SW-26574Copy head branch name to clipboard

Conversation

@jackieli-tes
Copy link
Contributor

@jackieli-tes jackieli-tes commented May 20, 2025

add lookup-only for faster cache verification

the output cache-hit can then be used to bypass cache preparation or prepare it due to key mismatch or cache is not accessible at s3 location.

@jackieli-tes jackieli-tes changed the title Sw 26574 add lookup only May 20, 2025
setCacheHitOutput(cacheHit);
setCacheSizeOutput(obj.size);
if (lookupOnly) {
if (cacheHit && obj.size > 0) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@eblfo I think if lookupOnly is set, it'll never download the cache. Hope this is ok with you

@jackieli-tes jackieli-tes merged commit f3eb2c0 into main May 20, 2025
21 of 22 checks passed
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.

2 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.