From af442e31ca60595c4700d7defdd9f8b4a56cb306 Mon Sep 17 00:00:00 2001 From: mphanias Date: Wed, 8 Nov 2023 20:03:05 +0530 Subject: [PATCH] sit-nov-testing : fixed github actions missed checkin of this file, includes 2 fixes 1. commenting of tar/gzip job as it is taken care of during packaging 2. installing hub package as it is not available by default in ubunut 20.04 anymore as per (https://github.com/actions/runner-images/issues/8362) --- .../workflows/build_release_artifacts.yaml | 22 ++++++++++++------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build_release_artifacts.yaml b/.github/workflows/build_release_artifacts.yaml index bffe1c96..49ca8fdd 100644 --- a/.github/workflows/build_release_artifacts.yaml +++ b/.github/workflows/build_release_artifacts.yaml @@ -59,15 +59,21 @@ jobs: - name: make package-linux-amd64 run: make package-linux-amd64 - - name: gzip tar files - run: | - cd pkg/target - ls -lrt *.tar - echo "GZipping tar files" - gzip aerospike-prometheus-exporter*.tar - echo "gzipped files" - ls -lrt *.gz + # - name: gzip tar files + # run: | + # cd pkg/target + # ls -lrt *.tar + # echo "GZipping tar files" + # gzip aerospike-prometheus-exporter*.tar + # echo "gzipped files" + # ls -lrt *.gz + - name: install hub utility (as workaround) + run: | + sudo apt update && sudo apt install -y git wget + url="$(sudo wget -qO- https://api.github.com/repos/github/hub/releases/latest | tr '"' '\n' | grep '.*/download/.*/hub-linux-amd64-.*.tgz')" + sudo wget -qO- "$url" | sudo tar -xzvf- -C /usr/bin --strip-components=2 --wildcards "*/bin/hub" + - name: Upload Release Asset env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}