mirror of
https://code.forgejo.org/forgejo/runner.git
synced 2025-08-26 18:20:59 +00:00
12 lines
244 B
JavaScript
12 lines
244 B
JavaScript
|
console.log('pre');
|
||
|
|
||
|
var cache = process.env['INPUT_CACHE']
|
||
|
try {
|
||
|
var cache = JSON.parse(cache)
|
||
|
} catch {
|
||
|
|
||
|
}
|
||
|
if(typeof cache !== 'boolean') {
|
||
|
console.log("Input Polluted boolean true/false expected, got " + cache)
|
||
|
process.exit(1);
|
||
|
}
|