Skip to content

Commit

Permalink
chore: Switch from action to use gh CLI
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored and mxpv committed Sep 23, 2023
1 parent 0531ae5 commit bb6e6b9
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,16 +95,20 @@ jobs:
- name: Checkout extensions
uses: actions/checkout@v4

- name: Download containerd release v${{ matrix.containerd }} archive
uses: robinraju/[email protected]
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
Expand Down

0 comments on commit bb6e6b9

Please sign in to comment.