Skip to content

Commit

Permalink
Test of | Out-File -FilePath $env:GITHUB_ENV -Append
Browse files Browse the repository at this point in the history
  • Loading branch information
MrHinsh committed Aug 8, 2024
1 parent 9cf5a01 commit 0e3cf12
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 0e3cf12

Please sign in to comment.