diff --git a/badges/coverage.svg b/badges/coverage.svg index bf0e188..03b4c01 100644 --- a/badges/coverage.svg +++ b/badges/coverage.svg @@ -1 +1 @@ -Coverage: 14.89%Coverage14.89% \ No newline at end of file +Coverage: 14.28%Coverage14.28% \ No newline at end of file diff --git a/dist/index.js b/dist/index.js index 8bd40e3..0b8bf1f 100644 --- a/dist/index.js +++ b/dist/index.js @@ -6617,7 +6617,7 @@ exports.run = void 0; const core = __importStar(__nccwpck_require__(2186)); const tc = __importStar(__nccwpck_require__(7784)); const exec = __importStar(__nccwpck_require__(1514)); -const BASE_RELEASE_URL = 'https://github.com/willgeorgetaylor/junit-reducer/releases/download/'; +const BASE_RELEASE_URL = 'https://github.com/willgeorgetaylor/junit-reducer/releases/'; // We're doing it this way so we can passthrough // inputs without needing to extract them individually. function enumerateInputs() { @@ -6632,7 +6632,9 @@ function enumerateInputs() { return inputs; } function formatReleaseUrl(suffix, version) { - return `${BASE_RELEASE_URL}${version}/junit-reducer_${suffix}`; + if (version === 'latest') + return `${BASE_RELEASE_URL}latest/download/junit-reducer_${suffix}`; + return `${BASE_RELEASE_URL}download/${version}/junit-reducer_${suffix}`; } /** * The main function for the action. diff --git a/src/main.ts b/src/main.ts index b99786d..6aabac5 100644 --- a/src/main.ts +++ b/src/main.ts @@ -20,7 +20,8 @@ function enumerateInputs(): Record { } function formatReleaseUrl(suffix: string, version: string): string { - if (version === 'latest') return `${BASE_RELEASE_URL}latest/download/junit-reducer_${suffix}` + if (version === 'latest') + return `${BASE_RELEASE_URL}latest/download/junit-reducer_${suffix}` return `${BASE_RELEASE_URL}download/${version}/junit-reducer_${suffix}` }