From bb6e6b9106aa418376239ee3bc48022e3a6ef102 Mon Sep 17 00:00:00 2001 From: Bryant Biggs Date: Thu, 21 Sep 2023 19:26:32 -0400 Subject: [PATCH] chore: Switch from action to use `gh` CLI --- .github/workflows/ci.yml | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f2561da6..317941a4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -95,16 +95,20 @@ jobs: - name: Checkout extensions uses: actions/checkout@v4 - - name: Download containerd release v${{ matrix.containerd }} archive - uses: robinraju/release-downloader@v1.8 - with: - repository: "containerd/containerd" - tag: v${{ matrix.containerd }} - fileName: "containerd-${{ matrix.containerd }}-linux-amd64.tar.gz" - extract: true + - name: Download containerd archive + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: | + gh release download v${{ matrix.containerd }} \ + --repo containerd/containerd \ + --pattern 'containerd-${{ matrix.containerd }}-linux-amd64.tar.gz' \ + --output containerd.tar.gz - - name: Add containerd binaries to PATH - run: echo "$GITHUB_WORKSPACE/bin" >> $GITHUB_PATH + - name: Extract containerd binaries to $HOME/.local/bin + run: | + mkdir -p $HOME/.local/bin + echo "$HOME/.local/bin" >> $GITHUB_PATH + tar -xf containerd.tar.gz -C $HOME/.local - name: Checkout containerd uses: actions/checkout@v4