Skip to content

Commit

Permalink
Log matched version when using latest
Browse files Browse the repository at this point in the history
Signed-off-by: nscuro <[email protected]>
  • Loading branch information
nscuro committed Jun 25, 2021
1 parent 910dee8 commit b1f7cdd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,9 @@ async function getLatestReleaseVersion(httpClient) {
throw new Error(`Unexpected response status: ${responseJson.statusCode}`);
}

return responseJson.result.tag_name;
const version = responseJson.result.tag_name;
core.info(`Latest version is ${version}`);
return version;
}

async function getReleaseVersionMatchingRange(httpClient, range) {
Expand Down

0 comments on commit b1f7cdd

Please sign in to comment.