From 6afdb885f6a8ef1c09fbd5fc0ec9bc89fdf0f7bc Mon Sep 17 00:00:00 2001 From: Mark Elliot <123787712+mark-thm@users.noreply.github.com> Date: Wed, 17 Apr 2024 16:16:33 -0400 Subject: [PATCH] cleanup --- .github/workflows/periodic-update-multitool.yml | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/.github/workflows/periodic-update-multitool.yml b/.github/workflows/periodic-update-multitool.yml index 5352d6c..548e362 100644 --- a/.github/workflows/periodic-update-multitool.yml +++ b/.github/workflows/periodic-update-multitool.yml @@ -25,11 +25,9 @@ jobs: token: ${{ steps.app-token.outputs.token }} - name: Download and Extract Latest Multitool run: | - curl -o multitool.tar.xz \ - "$(curl https://api.github.com/repos/theoremlp/multitool/releases/latest \ - | jq -r '.assets[].browser_download_url | select(. | test("linux-gnu.tar.xz$"))')" - - tar --strip-components -xzf multitool.tar.xz + latest="$(curl https://api.github.com/repos/theoremlp/multitool/releases/latest | jq -r '.assets[].browser_download_url | select(. | test("linux-gnu.tar.xz$"))')" + wget -O multitool.tar.xz "$latest" + tar --strip-components=1 -xzf multitool.tar.xz - name: Find Updates and Render Lockfile env: GITHUB_TOKEN: ${{ steps.app-token.outputs.token }}