github.com/nektos/act@v0.2.83/pkg/runner/testdata/uses-composite-check-for-input-collision/action-with-pre-and-post/main.js (about) 1 const { appendFileSync } = require('fs'); 2 const step = process.env['INPUT_STEP']; 3 appendFileSync(process.env['GITHUB_ENV'], `TEST=${step}`, { encoding:'utf-8' }) 4 5 var cache = process.env['INPUT_CACHE'] 6 try { 7 var cache = JSON.parse(cache) 8 } catch { 9 10 } 11 if(typeof cache !== 'boolean') { 12 console.log("Input Polluted boolean true/false expected, got " + cache) 13 process.exit(1); 14 }