From 39c72beaae110dbae2076e2a52c179a8ada929e2 Mon Sep 17 00:00:00 2001 From: Maxim Lobanov Date: Sat, 17 Oct 2020 11:52:51 +0300 Subject: [PATCH] Improve action output - print Xcode BuildNumber (#11) * add Xcode buildNumber to output * beutify output --- dist/index.js | 4 ++-- src/setup-xcode.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 4651859..fb00624 100644 --- a/dist/index.js +++ b/dist/index.js @@ -51,9 +51,9 @@ const run = () => { ...selector.getAllVersions().map(ver => `- ${ver.version} (${ver.path})`) ].join(os_1.EOL)); } - core.debug(`Xcode ${targetVersion.version} (${targetVersion.path}) will be set`); + core.debug(`Xcode ${targetVersion.version} (${targetVersion.buildNumber}) (${targetVersion.path}) will be set`); selector.setVersion(targetVersion); - core.info(`Xcode is set to '${targetVersion.version}'`); + core.info(`Xcode is set to ${targetVersion.version} (${targetVersion.buildNumber})`); } catch (error) { core.setFailed(error.message); diff --git a/src/setup-xcode.ts b/src/setup-xcode.ts index bd749da..241151a 100644 --- a/src/setup-xcode.ts +++ b/src/setup-xcode.ts @@ -29,9 +29,9 @@ const run = (): void => { ); } - core.debug(`Xcode ${targetVersion.version} (${targetVersion.path}) will be set`); + core.debug(`Xcode ${targetVersion.version} (${targetVersion.buildNumber}) (${targetVersion.path}) will be set`); selector.setVersion(targetVersion); - core.info(`Xcode is set to '${targetVersion.version}'`); + core.info(`Xcode is set to ${targetVersion.version} (${targetVersion.buildNumber})`); } catch (error) { core.setFailed(error.message); }