Skip to content

Commit

Permalink
Migrate hub to gh
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis committed Jan 8, 2024
1 parent 842194f commit 1c6848a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit 1c6848a

Please sign in to comment.