1
0
Fork 0
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:
Sindri Guðmundsson 2021-11-04 11:03:51 +00:00 committed by Davíð Guðni
parent df46e813e6
commit 556f8d8b36
3 changed files with 8 additions and 0 deletions

View file

@ -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;
}
}