diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 85dd7e5a99..8c6c2cad22 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -30,12 +30,12 @@ jobs: - name: Attach assets to release run: | set -x - assets=() + ASSETS=() for asset in Betaflight-*/*; do - assets+=("-a" "$asset") + ASSETS+=("-a" "$asset") echo "$asset" done - tag_name="${GITHUB_REF##*/}" - hub release edit "${assets[@]}" -m "" "$tag_name" + TAG_NAME="${GITHUB_REF##*/}" + gh release edit "${ASSETS[@]}" "${TAG_NAME}" env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}