Просмотр исходного кода

fix: Replace Write-Error with Write-Output in Github workflow

The code has been refactored to replace instances of Write-Error with Write-Output in the Github workflow build script. This prevents the workflow from terminating unexpectedly and instead emits a warning ensuring smoother execution.
DerSkythe 2 лет назад
Родитель
Сommit
c84a6ba7ef
1 измененных файлов с 2 добавлено и 2 удалено
  1. 2 2
      .github/workflows/build-with-firmwware.yml

+ 2 - 2
.github/workflows/build-with-firmwware.yml

@@ -93,7 +93,7 @@ jobs:
             git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
             git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
             
             
             if ( $LASTEXITCODE -ne 0 ) {
             if ( $LASTEXITCODE -ne 0 ) {
-              Write-Error '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
+              Write-Output '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
               #exit 1
               #exit 1
             }
             }
           } else {
           } else {
@@ -119,7 +119,7 @@ jobs:
             git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
             git checkout tags/v${{ env.RELEASE_VERSION }} -b tmp-build
 
 
             if ( $LASTEXITCODE -ne 0 ) {
             if ( $LASTEXITCODE -ne 0 ) {
-              Write-Error '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
+              Write-Output '::warning title=Cannot checkout to this version::Error during execution checkout to this tag ${{ env.RELEASE_VERSION }}'
               #exit 1
               #exit 1
             }
             }
           } else {
           } else {