Skip to content

Commit e59afab

Browse files
committed
ci: fix lychee extraction
The executable is in a subdir of the archive now.
1 parent ed309d5 commit e59afab

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ jobs:
5757
id: lychee
5858
if: always() && steps.deploy.outcome == 'success'
5959
run: |
60-
curl -sSfLo lychee.tar.gz "$(curl -sSfH 'Authorization: Bearer ${{ github.token }}' 'https://api.github.com/repos/lycheeverse/lychee/releases/latest' | mawk -F\" '/^ *"browser_download_url": ".*x86_64-unknown-linux-gnu\.tar\.gz"$/{print $4;exit}')"
61-
tar xf lychee.tar.gz lychee
60+
curl -sSfLo lychee.tar.gz "$(curl -sSfH 'Authorization: Bearer ${{ github.token }}' 'https://api.github.com/repos/lycheeverse/lychee/releases/latest' | grep -Po '"browser_download_url": *"\K[^"]*/lychee-x86_64-unknown-linux-gnu\.tar\.gz(?=")')")"
61+
tar xf lychee.tar.gz lychee-x86_64-unknown-linux-gnu/lychee
6262
- name: Run lychee to check Markdown and HTML files
6363
if: always() && steps.lychee.outcome == 'success'
6464
# x.com/DietPi_|www.patreon.com/DietPi: Network error: Forbidden

0 commit comments

Comments
 (0)