From edd13c85f1f11c38e7bd1be2a1e8a4210346797a Mon Sep 17 00:00:00 2001 From: Kristof Mattei <864376+Kristof-Mattei@users.noreply.github.com> Date: Sat, 30 Oct 2021 15:32:16 -0700 Subject: [PATCH] fix: don't try extract bz2 as gzip --- .github/workflows/pr.yaml | 2 +- .github/workflows/promote-artifacts.yml | 2 +- .github/workflows/semantic-tags.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr.yaml b/.github/workflows/pr.yaml index ee13f084..23a7eadf 100644 --- a/.github/workflows/pr.yaml +++ b/.github/workflows/pr.yaml @@ -187,7 +187,7 @@ jobs: const tc = require("@actions/tool-cache"); const urlToGrcovTar = "https://github.com/mozilla/grcov/releases/download/v0.8.2/grcov-linux-x86_64.tar.bz2"; const grcovTarPath = await tc.downloadTool(urlToGrcovTar); - const craneExtractedFolder = await tc.extractTar(grcovTarPath); + const craneExtractedFolder = await tc.extractTar(grcovTarPath, "--extract"); // no z, or gzip, as it's a bz2 core.addPath(craneExtractedFolder); - name: Generate test result and coverage report diff --git a/.github/workflows/promote-artifacts.yml b/.github/workflows/promote-artifacts.yml index 078ec6dd..bd93d159 100644 --- a/.github/workflows/promote-artifacts.yml +++ b/.github/workflows/promote-artifacts.yml @@ -72,7 +72,7 @@ jobs: const tc = require("@actions/tool-cache"); const urlToCraneTar = "https://github.com/google/go-containerregistry/releases/download/v0.6.0/go-containerregistry_Linux_x86_64.tar.gz"; const craneTarPath = await tc.downloadTool(urlToCraneTar); - const craneExtractedFolder = await tc.extractTar(craneTarPath); + const craneExtractedFolder = await tc.extractTar(craneTarPath, ["--extract", "--gzip"]); core.addPath(craneExtractedFolder); - name: Log into registry ${{ env.REGISTRY }} diff --git a/.github/workflows/semantic-tags.yml b/.github/workflows/semantic-tags.yml index 2e72c925..169deee6 100755 --- a/.github/workflows/semantic-tags.yml +++ b/.github/workflows/semantic-tags.yml @@ -141,7 +141,7 @@ jobs: const tc = require("@actions/tool-cache"); const urlToCraneTar = "https://github.com/google/go-containerregistry/releases/download/v0.6.0/go-containerregistry_Linux_x86_64.tar.gz"; const craneTarPath = await tc.downloadTool(urlToCraneTar); - const craneExtractedFolder = await tc.extractTar(craneTarPath); + const craneExtractedFolder = await tc.extractTar(craneTarPath, ["--extract", "--gzip"]); core.addPath(craneExtractedFolder); - name: Log into registry ${{ env.REGISTRY }}