mirror of
https://github.com/robinraju/release-downloader.git
synced 2026-10-02 08:46:05 +03:00
Add logging for latest tag name (#374)
This commit is contained in:
1 parent
5d2a002dd6
commit
2dd2f6632e
4 files changed
+4
-1
No files matched your search
@@ -21,7 +21,7 @@ jobs:
|
||||
node-version: '16'
|
||||
cache: 'npm'
|
||||
|
||||
- name: Build andd test
|
||||
- name: Build and test
|
||||
run: |
|
||||
npm install
|
||||
npm run all
|
||||
|
||||
Vendored
+1
@@ -3935,6 +3935,7 @@ function getlatestRelease(repoPath, token) {
|
||||
}
|
||||
const responseBody = yield response.readBody();
|
||||
const _release = JSON.parse(responseBody.toString());
|
||||
core.info(`Found latest release version: ${_release.tag_name}`);
|
||||
return _release;
|
||||
});
|
||||
}
|
||||
|
||||
@@ -72,6 +72,7 @@ async function getlatestRelease(
|
||||
const responseBody = await response.readBody()
|
||||
const _release: GithubRelease = JSON.parse(responseBody.toString())
|
||||
|
||||
core.info(`Found latest release version: ${_release.tag_name}`)
|
||||
return _release
|
||||
}
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ interface GhAsset {
|
||||
|
||||
export interface GithubRelease {
|
||||
name: string
|
||||
tag_name: String
|
||||
assets: GhAsset[]
|
||||
tarball_url: string
|
||||
zipball_url: string
|
||||
|
||||
Reference in new issue
Block a user