From 0e3cf12eb353f24b8df045043fc0c24f5cb48713 Mon Sep 17 00:00:00 2001 From: "Martin Hinshelwood nkdAgility.com" Date: Thu, 8 Aug 2024 15:32:36 +0100 Subject: [PATCH] Test of | Out-File -FilePath $env:GITHUB_ENV -Append --- .github/workflows/main.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f2213b70c..e70490900 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -113,10 +113,9 @@ jobs: $description = Get-ReleaseDescription -mode log -OPEN_AI_KEY ${{ secrets.OPENAI_API_KEY }} if ($description -eq $null) { $description = "No release description found"; - echo "release_description_state=false" >> $env:GITHUB_OUTPUT + "release_description_state=false" | Out-File -FilePath $env:GITHUB_ENV -Append } else { - echo "release_description_state=true" >> $env:GITHUB_OUTPUT - Write-Output "Release Description: $description" + "release_description_state=true" | Out-File -FilePath $env:GITHUB_ENV -Append } $EOF = -join (1..15 | ForEach {[char]((48..57)+(65..90)+(97..122) | Get-Random)}) "release_description<<$EOF" | Out-File -FilePath $env:GITHUB_ENV -Append