Skip to content

Commit

Permalink
build: distrib
Browse files Browse the repository at this point in the history
Signed-off-by: Leonardo Di Donato <[email protected]>
  • Loading branch information
leodido committed May 7, 2024
1 parent 071f6c5 commit a1942b5
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
9 changes: 5 additions & 4 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/install.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export async function lstn(tag: string, directory: string): Promise<string> {
export async function argusFor(
tag: string,
directory: string,
explicitTag?: string,
explicitTag?: string
): Promise<string> {
// Argus only runs on linux amd64
const plat = getPlat(process.platform.toString());
Expand Down
8 changes: 6 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ async function run() {
const tmpdir = await fs.mkdtemp(path.join(runnertmp, 'lstn-'));

try {
const runArgus = core.getInput('ci') == 'true';
const runArgus = core.getInput('ci') == 'true'; // FIXME: switch to core.getBooleanInput() ?
const customArgusVersion = core.getInput('argus_version');
const jwt = core.getInput('jwt');
const version = core.getInput('lstn');
Expand All @@ -39,7 +39,11 @@ async function run() {
'👁️‍🗨️ Installing argus... https://listen.dev',
async () => {
// Install argus for lstn
const location = await install.argusFor(version, tmpdir, customArgusVersion);
const location = await install.argusFor(
version,
tmpdir,
customArgusVersion
);
// Moving argus to /usr/bin
const dest = '/usr/bin/argus';
core.info(`moving argus to ${path.dirname(dest)}`);
Expand Down

0 comments on commit a1942b5

Please sign in to comment.