瀏覽代碼

fix: Update release tag check in 'Subbrute' application's build workflow

This code change updates the release tag check in the build workflow for the 'Subbrute' application. We are now dynamically fetching the SHA, firmware version, and URL from the Github API, which will enhance debugging. This should reduce unnecessary API calls and mitigate potential issues from non-existent release tags.
DerSkythe 2 年之前
父節點
當前提交
5b5c867e98
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      .github/workflows/build-with-firmwware.yml

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

@@ -105,10 +105,10 @@ jobs:
       - name: Get SHA of our application
         shell: pwsh
         run: |
+          $fwInfo = ((gh release view --json tagName,url -R ${{ matrix.url }}) | ConvertFrom-Json)
           cd '${{ env.APP_PATH }}'
-          $fwInfo = ((gh release view --json tagName -R DarkFlippers/unleashed-firmware) | ConvertFrom-Json)
           $sha = (git rev-parse --verify HEAD)
-          Write-Output ('RELEASE_VERSION={0}' -f $sha) >> $env:GITHUB_ENV
+          Write-Output ('SHA={0}' -f $sha) >> $env:GITHUB_ENV
           Write-Output ('FW_VERSION={0}' -f $fwInfo.tagName) >> $env:GITHUB_ENV
           Write-Output ('FW_URL={0}' -f $fwInfo.url) >> $env:GITHUB_ENV