setup-alpine/index.js

10 lines
323 B
JavaScript
Raw Normal View History

2025-01-20 19:10:08 -08:00
const { exec } = require('node:child_process');
2025-01-20 18:40:20 -08:00
var additional = process.env.INPUT_ADDITIONAL;
2025-01-20 18:34:15 -08:00
exec('apk add bash git ' + additional, (err, output) => {
2025-01-20 19:10:08 -08:00
if (err) {
console.log("Something went wrong...");
2025-01-20 22:32:25 -08:00
console.log(output);
2025-01-20 19:10:08 -08:00
} else {
console.log("Successfully installed packages!");
}
2025-01-20 18:21:04 -08:00
})