diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 1e6d86abf8..a9646e9a3f 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -26,9 +26,7 @@ jobs: - name: Download and install lychee run: | LYCHEE_URL=$(curl -s https://api.github.com/repos/lycheeverse/lychee/releases/latest | grep "browser_download_url" | grep "x86_64-unknown-linux-gnu.tar.gz" | cut -d '"' -f 4) - curl -L $LYCHEE_URL -o lychee.tar.gz - tar xzf lychee.tar.gz - sudo mv lychee /usr/local/bin + curl -L $LYCHEE_URL | sudo tar xz -C /usr/local/bin - name: Download Website run: | diff --git a/.github/workflows/links_local.yml b/.github/workflows/links_local.yml index 68b646ecc6..46659ca84a 100644 --- a/.github/workflows/links_local.yml +++ b/.github/workflows/links_local.yml @@ -33,9 +33,7 @@ jobs: - name: Download and install lychee run: | LYCHEE_URL=$(curl -s https://api.github.com/repos/lycheeverse/lychee/releases/latest | grep "browser_download_url" | grep "x86_64-unknown-linux-gnu.tar.gz" | cut -d '"' -f 4) - curl -L $LYCHEE_URL -o lychee.tar.gz - tar xzf lychee.tar.gz - sudo mv lychee /usr/local/bin + curl -L $LYCHEE_URL | sudo tar xz -C /usr/local/bin - name: Test Markdown and HTML links with retry uses: ultralytics/actions/retry@main