Skip to content

Commit

Permalink
Added logging messages to action.
Browse files Browse the repository at this point in the history
  • Loading branch information
MrFlynn committed Jul 7, 2024
1 parent 16ad0d6 commit 1762d11
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,18 @@ async function run(): Promise<void> {
const inputs = config.getInputs();
const platform = config.getPlatform();

core.info(`Running ${inputs.script} with flyscrape@${inputs.version}`);

// Get asset URL from Github for the current platform.
const assetURL = await github.getAssetURL(inputs.version, platform);

core.debug(`Downloading Flyscrape binary from ${assetURL}`);

// Download, extract, and execute binary.
const binaryPath = await binary.saveBinary(assetURL);
core.debug(
`Executing script: ${binaryPath} ${inputs.args.join(" ")} ${inputs.script}`,
);
const output = await binary.executeScript(
binaryPath,
inputs.script,
Expand Down

0 comments on commit 1762d11

Please sign in to comment.