diff --git a/.gitea/workflows/gui-version-release.yml b/.gitea/workflows/gui-version-release.yml index ae86acc..699f4e5 100644 --- a/.gitea/workflows/gui-version-release.yml +++ b/.gitea/workflows/gui-version-release.yml @@ -156,30 +156,13 @@ jobs: if: always() shell: powershell run: | - $summaryFile = $env:GITHUB_STEP_SUMMARY - if ($summaryFile) { - "## GUI Version Release Summary" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - "" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - - if ("${{ job.status }}" -eq "success") { - "**Status**: Version release succeeded" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - } else { - "**Status**: Version release failed" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - } - - "**Author**: ${{ github.actor }}" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - "**Branch**: ${{ github.ref_name }}" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - "**Time**: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - "**Commit**: ${{ github.sha }}" | Out-File -FilePath $summaryFile -Append -Encoding UTF8 - } else { - Write-Host "==========================================" - Write-Host "GUI Version Release Summary" - Write-Host "==========================================" - Write-Host "Author: ${{ github.actor }}" - Write-Host "Branch: ${{ github.ref_name }}" - Write-Host "Time: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" - Write-Host "Commit: ${{ github.sha }}" - Write-Host "Status: ${{ job.status }}" - Write-Host "==========================================" - } + Write-Host "==========================================" + Write-Host "GUI Version Release Summary" + Write-Host "==========================================" + Write-Host "Author: ${{ github.actor }}" + Write-Host "Branch: ${{ github.ref_name }}" + Write-Host "Version: $env:VERSION" + Write-Host "Time: $(Get-Date -Format 'yyyy-MM-dd HH:mm:ss')" + Write-Host "Commit: ${{ github.sha }}" + Write-Host "=========================================="