github.com/nektos/act@v0.2.83/pkg/runner/testdata/uses-composite-check-for-input-shadowing/action-with-pre-and-post/pre.js (about)

     1  console.log('pre');
     2  
     3  var cache = process.env['INPUT_CACHE']
     4  try {
     5      var cache = JSON.parse(cache)
     6  } catch {
     7  
     8  }
     9  if(typeof cache !== 'boolean') {
    10      console.log("Input Polluted boolean true/false expected, got " + cache)
    11      process.exit(1);
    12  }