Skip to content

Commit

Permalink
Add logging for latest tag name (#374)
Browse files Browse the repository at this point in the history
  • Loading branch information
robinraju authored Feb 3, 2022
1 parent 5d2a002 commit 2dd2f66
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ jobs:
node-version: '16'
cache: 'npm'

- name: Build andd test
- name: Build and test
run: |
npm install
npm run all
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
});
}
Expand Down
1 change: 1 addition & 0 deletions src/download.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down
1 change: 1 addition & 0 deletions src/gh-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ interface GhAsset {

export interface GithubRelease {
name: string
tag_name: String
assets: GhAsset[]
tarball_url: string
zipball_url: string
Expand Down

0 comments on commit 2dd2f66

Please sign in to comment.