diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 5cebd27f28b..8f4f2c645fb 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -53,7 +53,8 @@ jobs: - name: Install lychee and dependencies run: | - curl -sSfL "https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz" | sudo tar xz -C /usr/local/bin + curl -sSfL "https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz" | + sudo tar xz --strip-components=1 -C /usr/local/bin lychee-x86_64-unknown-linux-gnu/lychee uv pip install --system -r requirements.txt - name: Get Website URLs diff --git a/.github/workflows/links_local.yml b/.github/workflows/links_local.yml index 9b99fe2a6d5..a9ec690b508 100644 --- a/.github/workflows/links_local.yml +++ b/.github/workflows/links_local.yml @@ -36,7 +36,9 @@ jobs: uses: actions/checkout@v6 - name: Install lychee - run: curl -sSfL "https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz" | sudo tar xz -C /usr/local/bin + run: | + curl -sSfL "https://github.com/lycheeverse/lychee/releases/latest/download/lychee-x86_64-unknown-linux-gnu.tar.gz" | + sudo tar xz --strip-components=1 -C /usr/local/bin lychee-x86_64-unknown-linux-gnu/lychee - name: Test Markdown and HTML links with retry uses: ultralytics/actions/retry@main