Skip to content

Commit

Permalink
update prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
GrantBirki committed Nov 2, 2024
1 parent 75c238f commit 6b64c64
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ const childProcess = require("child_process");
const os = require("os");
const process = require("process");

// the prefix of the binary (aka the name of the project)
const binaryPrefix = "github-action"

function chooseBinary() {
const platform = os.platform();
const arch = os.arch();
Expand Down Expand Up @@ -33,7 +36,7 @@ function chooseBinary() {

function main() {
const binary = chooseBinary();
const mainScript = `./bin/${binary}`;
const mainScript = `./bin/${binaryPrefix}-${binary}`;
const spawnSyncReturns = childProcess.spawnSync(mainScript, {
stdio: "inherit",
});
Expand Down

0 comments on commit 6b64c64

Please sign in to comment.