Browse Source

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 years ago
parent
commit
5b5c867e98
1 changed files with 2 additions and 2 deletions
  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