diff --git a/.github/workflows/links.yml b/.github/workflows/links.yml index 8227b01..6d062f8 100644 --- a/.github/workflows/links.yml +++ b/.github/workflows/links.yml @@ -21,10 +21,8 @@ jobs: steps: - uses: actions/checkout@v4 - - 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 | tar xz -C /usr/local/bin + - 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 - name: Test Markdown and HTML links with retry uses: ultralytics/actions/retry@main