Title: Pass additional restore-keys to cache action · Issue #366 · actions/setup-java · GitHub
Open Graph Title: Pass additional restore-keys to cache action · Issue #366 · actions/setup-java
X Title: Pass additional restore-keys to cache action · Issue #366 · actions/setup-java
Description: As can be seen in their examples: https://github.com/actions/cache/blob/main/examples.md#java---gradle It is recommended that additional restore-keys are passed when using actions/cache. https://github.com/actions/cache#inputs https://do...
Open Graph Description: As can be seen in their examples: https://github.com/actions/cache/blob/main/examples.md#java---gradle It is recommended that additional restore-keys are passed when using actions/cache. https://gi...
X Description: As can be seen in their examples: https://github.com/actions/cache/blob/main/examples.md#java---gradle It is recommended that additional restore-keys are passed when using actions/cache. https://gi...
Opengraph URL: https://github.com/actions/setup-java/issues/366
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Pass additional restore-keys to cache action","articleBody":"As can be seen in their examples: https://github.com/actions/cache/blob/main/examples.md#java---gradle\r\n\r\nIt is recommended that additional restore-keys are passed when using `actions/cache`. https://github.com/actions/cache#inputs\r\n\r\nhttps://docs.github.com/en/actions/using-workflows/caching-dependencies-to-speed-up-workflows#matching-a-cache-key\r\n\r\nhttps://github.com/actions/setup-java/blob/5b36705a13905facb447b6812d613a06a07e371d/src/cache.ts#L100 could be changed to something like:\r\n\r\n```javascript\r\nconst restoreKey = `${CACHE_KEY_PREFIX}-${process.env['RUNNER_OS']}-${packageManager.id}`;\r\nconst matchedKey = await cache.restoreCache(packageManager.path, primaryKey, [restoreKey]); \r\n```\r\n\r\n\r\n\r\n","author":{"url":"https://github.com/gustavovnicius","@type":"Person","name":"gustavovnicius"},"datePublished":"2022-08-12T08:14:05.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":8},"url":"https://github.com/366/setup-java/issues/366"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:98cdd346-9fdd-7a31-559b-efc5abb03d51 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8BE8:2D857A:17E34E3:2087016:6A535DA3 |
| html-safe-nonce | 104644e639cd7a33f60a01c163215834beb98a3d6519fef6e5cf16194f79ad04 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4QkU4OjJEODU3QToxN0UzNEUzOjIwODcwMTY6NkE1MzVEQTMiLCJ2aXNpdG9yX2lkIjoiNDgxMjAzOTg0MDc3MzM5NzkyMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 388ba59bcd947f6a1a8d76dd944865c3a2a1c609489a9e5a26b62968c1ef2466 |
| hovercard-subject-tag | issue:1336896081 |
| github-keyboard-shortcuts | repository,issues,actions,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/actions/setup-java/366/issue_layout |
| twitter:image | https://opengraph.githubassets.com/639c576dd43087ab031ebf72ae1895c378b1b90cb5a9ec7e9052b966ccab2790/actions/setup-java/issues/366 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/639c576dd43087ab031ebf72ae1895c378b1b90cb5a9ec7e9052b966ccab2790/actions/setup-java/issues/366 |
| og:image:alt | As can be seen in their examples: https://github.com/actions/cache/blob/main/examples.md#java---gradle It is recommended that additional restore-keys are passed when using actions/cache. https://gi... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gustavovnicius |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/actions/setup-java git https://github.com/actions/setup-java.git |
| octolytics-dimension-user_id | 44036562 |
| octolytics-dimension-user_login | actions |
| octolytics-dimension-repository_id | 196057608 |
| octolytics-dimension-repository_nwo | actions/setup-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 196057608 |
| octolytics-dimension-repository_network_root_nwo | actions/setup-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width