From 1c6356f8f34d17e556c776728943a9da5483bcf3 Mon Sep 17 00:00:00 2001 From: Dustin Brickwood Date: Thu, 19 Oct 2023 05:19:24 +0000 Subject: [PATCH] chore: replace deprecated hub with gh for releases (#4839) ## Issue Addressed - The tool hub that is used to create draft releases has been removed as of October 2. See: https://github.com/actions/runner-images/issues/8362 - This change replaces `hub` usage in favour of [`gh`](https://cli.github.com/manual/gh_release_create) ## Proposed Changes - This change replaces `hub` usage in favour of [`gh`](https://cli.github.com/manual/gh_release_create) ## Additional Info Please provide any additional information. For example, future considerations or information useful for reviewers. Co-authored-by: Michael Sproul --- .github/workflows/release.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 24ca09ec00..26ef781b68 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -282,9 +282,6 @@ jobs: | | Docker | [${{ env.VERSION }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}/tags?page=1&ordering=last_updated&name=${{ env.VERSION }}) | [${{ env.IMAGE_NAME }}](https://hub.docker.com/r/${{ env.IMAGE_NAME }}) | ENDBODY ) - assets=() - for asset in ./lighthouse-*.tar.gz*; do - assets+=("-a" "$asset/$asset") - done + assets=(./lighthouse-*.tar.gz*) tag_name="${{ env.VERSION }}" - echo "$body" | hub release create --draft "${assets[@]}" -F "-" "$tag_name" + echo "$body" | gh release create --draft -F "-" "$tag_name" "${assets[@]}"