Remove GitHub Cache support for now (future release or buildkit cache provider?)

Signed-off-by: CrazyMax <crazy-max@users.noreply.github.com>
This commit is contained in:
CrazyMax
2020-08-17 18:35:15 +02:00
parent 2962fe9789
commit 44d05b9191
9 changed files with 32 additions and 54196 deletions

View File

@ -1,26 +0,0 @@
import * as core from '@actions/core';
export const IsPost = !!process.env['STATE_isPost'];
export const cachePrimaryKey = process.env['STATE_cachePrimaryKey'] || '';
export const cacheMatchedKey = process.env['STATE_cacheMatchedKey'] || '';
export function setCachePrimaryKey(cachePrimaryKey: string) {
core.saveState('cachePrimaryKey', cachePrimaryKey);
}
export function setCacheMatchedKey(cacheMatchedKey: string) {
core.saveState('cacheMatchedKey', cacheMatchedKey);
}
export function isExactKeyMatch(key: string, cacheKey?: string): boolean {
return !!(
cacheKey &&
cacheKey.localeCompare(key, undefined, {
sensitivity: 'accent'
}) === 0
);
}
if (!IsPost) {
core.saveState('isPost', 'true');
}