Skip to content

Commit

Permalink
need to trim v from version for download
Browse files Browse the repository at this point in the history
  • Loading branch information
miniscruff committed Oct 23, 2022
1 parent aef2fc5 commit fac21d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 16 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

21 changes: 7 additions & 14 deletions src/changie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -74,21 +74,14 @@ const getFilename = (version: string): string => {

const ext: string = context.osPlat == "win32" ? "zip" : "tar.gz";

console.log(`osArch: ${context.osArch}`);
console.log(`osPlat: ${context.osPlat}`);
console.log(`version: ${version}`);
console.log(`arch: ${arch}`);
console.log(`platform: ${platform}`);
console.log(`ext: ${ext}`);
core.debug(`osArch: ${context.osArch}`);
core.debug(`osPlat: ${context.osPlat}`);
core.debug(`version: ${version}`);
core.debug(`arch: ${arch}`);
core.debug(`platform: ${platform}`);
core.debug(`ext: ${ext}`);

core.warning(`osArch: ${context.osArch}`);
core.warning(`osPlat: ${context.osPlat}`);
core.warning(`version: ${version}`);
core.warning(`arch: ${arch}`);
core.warning(`platform: ${platform}`);
core.warning(`ext: ${ext}`);

const filename = `changie_${version}_${platform}_${arch}.${ext}`;
const filename = `changie_${version.substr(1)}_${platform}_${arch}.${ext}`;
core.info(`filename: ${filename}`);
return filename;
};

0 comments on commit fac21d5

Please sign in to comment.