mirror of
https://github.com/actions/cache.git
synced 2025-07-16 21:27:54 +00:00
Default to GITHUB_ACTIONS_CACHE_URL
This commit is contained in:
parent
df46e813e6
commit
556f8d8b36
3 changed files with 8 additions and 0 deletions
|
@ -22,6 +22,8 @@ export function setActionsCacheUrl(): void {
|
|||
const requestedCacheUrl = core.getInput("cache-url");
|
||||
if (requestedCacheUrl) {
|
||||
process.env.ACTIONS_CACHE_URL = requestedCacheUrl;
|
||||
} else if (process.env.GITHUB_ACTIONS_CACHE_URL) {
|
||||
process.env.ACTIONS_CACHE_URL = process.env.GITHUB_ACTIONS_CACHE_URL;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue