mirror of
https://github.com/taiki-e/install-action.git
synced 2026-04-23 07:40:40 +00:00
Initial implementation
This commit is contained in:
16
main.js
Normal file
16
main.js
Normal file
@@ -0,0 +1,16 @@
|
||||
const { execFileSync } = require('child_process');
|
||||
|
||||
function main() {
|
||||
try {
|
||||
execFileSync(
|
||||
'bash',
|
||||
['--noprofile', '--norc', `${__dirname}/main.sh`],
|
||||
{ stdio: 'inherit' }
|
||||
);
|
||||
} catch (e) {
|
||||
console.log(`::error::${e.message}`);
|
||||
process.exit(1);
|
||||
}
|
||||
}
|
||||
|
||||
main();
|
||||
Reference in New Issue
Block a user