From 2dd2f6632ea74de2327a706ea1037f5e090e6810 Mon Sep 17 00:00:00 2001 From: Robin Raju Date: Thu, 3 Feb 2022 21:21:06 +0100 Subject: [PATCH] Add logging for latest tag name (#374) --- .github/workflows/ci.yml | 2 +- dist/index.js | 1 + src/download.ts | 1 + src/gh-api.ts | 1 + 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 185e6b7..56014ab 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: node-version: '16' cache: 'npm' - - name: Build andd test + - name: Build and test run: | npm install npm run all diff --git a/dist/index.js b/dist/index.js index b8d00b9..65a9ea9 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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; }); } diff --git a/src/download.ts b/src/download.ts index 90dae55..fe93a01 100644 --- a/src/download.ts +++ b/src/download.ts @@ -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 } diff --git a/src/gh-api.ts b/src/gh-api.ts index 2c898e0..86e5a8d 100644 --- a/src/gh-api.ts +++ b/src/gh-api.ts @@ -5,6 +5,7 @@ interface GhAsset { export interface GithubRelease { name: string + tag_name: String assets: GhAsset[] tarball_url: string zipball_url: string