From 4b84788fcc7efea8c9a213a77a50fb7d69b933b3 Mon Sep 17 00:00:00 2001 From: Giuseppe Lumia Date: Thu, 2 Dec 2021 16:14:40 +0100 Subject: [PATCH] Print installed Task version This could be useful in case users don't specify an exact version (e.g. `3.x`) but want to know what version of Task their CI actually ran. --- dist/index.js | 1 + src/installer.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/dist/index.js b/dist/index.js index b3c50b61..f51d0b98 100644 --- a/dist/index.js +++ b/dist/index.js @@ -195,6 +195,7 @@ function getTask(version, repoToken) { } toolPath = path.join(toolPath, "bin"); core.addPath(toolPath); + core.info(`Successfully setup Task version ${targetVersion}`); }); } exports.getTask = getTask; diff --git a/src/installer.ts b/src/installer.ts index b4c1cf4a..d4c1a989 100644 --- a/src/installer.ts +++ b/src/installer.ts @@ -195,4 +195,5 @@ export async function getTask(version: string, repoToken: string) { toolPath = path.join(toolPath, "bin"); core.addPath(toolPath); + core.info(`Successfully setup Task version ${targetVersion}`); }