From 3eceea87353bd855f88ce5695a18e96ac495dc69 Mon Sep 17 00:00:00 2001 From: Marc Durdin Date: Thu, 24 Mar 2022 08:52:10 +1100 Subject: [PATCH] fix(common): report more log detail in increment-version Relates to #6391. Adds some logging so we may be able to find out why we are getting strange results for some PRs. --- resources/build/version/src/reportHistory.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/resources/build/version/src/reportHistory.ts b/resources/build/version/src/reportHistory.ts index 672833494e..8669cf2235 100644 --- a/resources/build/version/src/reportHistory.ts +++ b/resources/build/version/src/reportHistory.ts @@ -1,4 +1,4 @@ -import { warning as logWarning } from '@actions/core'; +import { warning as logWarning, info as logInfo } from '@actions/core'; import { GitHub } from '@actions/github'; @@ -114,6 +114,8 @@ export const reportHistory = async ( return []; } + logInfo('Found commits for '+JSON.stringify(args)+': \n'+git_result); + const new_commits = git_result.split(/\r?\n/g); //