Update cache service APIs & cleanup

This commit is contained in:
Bassem Dghaidi
2024-11-20 13:53:47 -08:00
committed by GitHub
parent 8616c313a2
commit a1e6ef3759
9 changed files with 302 additions and 308 deletions
-8
View File
@@ -1,11 +1,3 @@
export function getRuntimeToken(): string {
const token = process.env['ACTIONS_RUNTIME_TOKEN']
if (!token) {
throw new Error('Unable to get the ACTIONS_RUNTIME_TOKEN env variable')
}
return token
}
export function getCacheServiceVersion(): string {
return process.env['ACTIONS_CACHE_SERVICE_V2'] ? 'v2' : 'v1'
}