diff --git a/.github/workflows/update_assets.yml b/.github/workflows/update_assets.yml index 981e3f669..eb6a42e32 100644 --- a/.github/workflows/update_assets.yml +++ b/.github/workflows/update_assets.yml @@ -31,6 +31,13 @@ jobs: uses: actions/setup-python@v2 with: python-version: "3.9" #install the python needed + + - name: Install hub + run: | + latest_hub_version=$(curl -s https://api.github.com/repos/github/hub/releases/latest | jq -r '.tag_name' | sed 's/v//') + hub_download_url="https://github.com/github/hub/releases/download/v${latest_hub_version}/hub-linux-amd64-${latest_hub_version}.tgz" + curl -L "$hub_download_url" | tar xz + sudo mv hub-linux-amd64-${latest_hub_version}/bin/hub /usr/local/bin/hub # Optimize images - name: Optimize images