Skip to content

Commit

Permalink
add debug log
Browse files Browse the repository at this point in the history
  • Loading branch information
darrenvechain committed Jun 13, 2024
1 parent a746f5b commit 2542a7d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions action/dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33092,6 +33092,7 @@ const core = __importStar(__nccwpck_require__(2186));
const tc = __importStar(__nccwpck_require__(7784));
const github = __importStar(__nccwpck_require__(5438));
const process = __importStar(__nccwpck_require__(7282));
const fs = __importStar(__nccwpck_require__(7147));
function getExecutableName() {
let platform;
switch (process.platform) {
Expand Down Expand Up @@ -33152,6 +33153,10 @@ function setup() {
const binPath = yield tc.downloadTool(asset.url, undefined, `token ${token}`, {
accept: 'application/octet-stream'
});
// list the files in the binPath
fs.readdirSync(binPath).forEach(file => {
core.info(file);
});
core.info(`Successfully downloaded network-hub to ${binPath}`);
//
// let extractArgs = core.getMultilineInput("extractArgs");
Expand Down
7 changes: 6 additions & 1 deletion action/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as core from '@actions/core';
import * as tc from '@actions/tool-cache';
import * as github from '@actions/github';
import * as process from 'process';
import * as fs from 'fs';

function getExecutableName(): string {
let platform: string
Expand Down Expand Up @@ -45,7 +46,6 @@ async function setup() {
}

core.setOutput('version', version)

core.info(`Installing networkHub version ${version}`)

// set up auth/environment
Expand Down Expand Up @@ -81,6 +81,11 @@ async function setup() {
}
);

// list the files in the binPath
fs.readdirSync(binPath).forEach(file => {
core.info(file);
});

core.info(`Successfully downloaded network-hub to ${binPath}`)
//
// let extractArgs = core.getMultilineInput("extractArgs");
Expand Down

0 comments on commit 2542a7d

Please sign in to comment.