소스 검색

Update notices in build workflow to include firmware

The build-with-firmware workflow has been modified to include the firmware matrix value in all notice outputs. This change provides improved context and clearer logging when working on different firmware versions, aiding in efficient debugging and review process.
DerSkythe 2 년 전
부모
커밋
9e9f4ad2f5
1개의 변경된 파일6개의 추가작업 그리고 6개의 파일을 삭제
  1. 6 6
      .github/workflows/build-with-firmwware.yml

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

@@ -95,7 +95,7 @@ jobs:
           GITHUB_TOKEN: ${{ secrets.FLIPPER_TOKEN }}
           INPUT_VERSION: ${{ inputs.version }}
         run: |
-          Write-Output "::notice title=Input Version Number::v${{ inputs.version }}"
+          Write-Output "::notice title=${{ matrix.firmware }}) Input Version Number::v${{ inputs.version }}"
           $fwInfo = ((gh release view --json tagName,url -R ${{ matrix.url }}) | ConvertFrom-Json)
           cd '${{ env.APP_PATH }}'
           $sha = (git rev-parse --verify HEAD)
@@ -104,7 +104,7 @@ jobs:
           $latestTag = ((gh release view --json tagName,url -R ${{ vars.REPO_SELF }}) | ConvertFrom-Json ).tagName
 
           if ( [string]::IsNullOrWhitespace($env:INPUT_VERSION) ) {            
-            Write-Output "::notice title=Latest tag::$latestTag"
+            Write-Output "::notice title=${{ matrix.firmware }}) Latest tag::$latestTag"
             
             $lastIndex = $latestTag.LastIndexOf('.')
             
@@ -121,10 +121,10 @@ jobs:
             $releaseVersion = $releaseVersion.Substring(1)
           }
           
-          Write-Output "::notice title=RELEASE_VERSION::$releaseVersion"
-          Write-Output "::notice title=SHA::$sha"
-          Write-Output "::notice title=FW_VERSION::$fwInfo.tagName"
-          Write-Output "::notice title=PREV_TAG::$latestTag"
+          Write-Output "::notice title=${{ matrix.firmware }}) RELEASE_VERSION::$releaseVersion"
+          Write-Output "::notice title=${{ matrix.firmware }}) SHA::$sha"
+          Write-Output "::notice title=${{ matrix.firmware }}) FW_VERSION::$fwInfo.tagName"
+          Write-Output "::notice title=${{ matrix.firmware }}) PREV_TAG::$latestTag"
           
           Write-Output ('RELEASE_VERSION={0}' -f $releaseVersion) >> $env:GITHUB_ENV
           Write-Output ('SHA={0}' -f $sha) >> $env:GITHUB_ENV