From 433744029bdd96ce0d9b3f401a91990f5f32df9a Mon Sep 17 00:00:00 2001 From: Joel Timothy Oh Date: Sat, 1 Jun 2024 02:10:41 +0000 Subject: [PATCH] Enhancement (entrypoint): Add verbose output for environment variable `RELEASE_NAME` --- src/scripts/ci/Invoke-Release.ps1 | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/scripts/ci/Invoke-Release.ps1 b/src/scripts/ci/Invoke-Release.ps1 index d7409c3..aa887de 100644 --- a/src/scripts/ci/Invoke-Release.ps1 +++ b/src/scripts/ci/Invoke-Release.ps1 @@ -29,7 +29,13 @@ try { ApiKey = $env:GITHUB_API_TOKEN TagName = $env:RELEASE_TAG_REF TargetCommitish = git --git-dir "$($private:ProjectDir)/.git" rev-parse $env:RELEASE_TAG_REF - Name = if ($env:RELEASE_NAME) { $env:RELEASE_NAME } else { $env:RELEASE_TAG_REF } + Name = if ($env:RELEASE_NAME) { + "Using specified release name '$env:RELEASE_NAME'" | Write-Verbose + $env:RELEASE_NAME + }else { + "Using specified ref '$env:RELEASE_TAG_REF' as the release name" | Write-Verbose + $env:RELEASE_TAG_REF + } } if ($env:RELEASE_NOTES_PATH) { "Sourcing from specified release notes path '$env:RELEASE_NOTES_PATH'" | Write-Verbose