github.com/nektos/act@v0.2.63-0.20240520024548-8acde99bfa9c/pkg/runner/testdata/uses-action-with-pre-and-post-step/last-action/post.js (about) 1 const pre = process.env['ACTION_OUTPUT_PRE']; 2 const main = process.env['ACTION_OUTPUT_MAIN']; 3 const post = process.env['ACTION_OUTPUT_POST']; 4 5 console.log({pre, main, post}); 6 7 if (pre !== 'pre') { 8 throw new Error(`Expected 'pre' but got '${pre}'`); 9 } 10 11 if (main !== 'main') { 12 throw new Error(`Expected 'main' but got '${main}'`); 13 } 14 15 if (post !== 'post') { 16 throw new Error(`Expected 'post' but got '${post}'`); 17 }