Skip to content

Commit ed309d5

Browse files
committed
Revert "Update main.yml"
This reverts commit ad1159b.
1 parent 07e6f15 commit ed309d5

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ jobs:
5454
if: always() && steps.pyspelling.outcome == 'success'
5555
run: pyspelling -vc .spellcheck.yml
5656
- name: Download lychee
57+
id: lychee
58+
if: always() && steps.deploy.outcome == 'success'
5759
run: |
58-
LY_VERSION="0.15.1"
59-
curl -sSfL -o lychee.tar.gz \
60-
"https://github.com/lycheeverse/lychee/releases/download/v${LY_VERSION}/lychee-v${LY_VERSION}-x86_64-unknown-linux-gnu.tar.gz"
61-
tar -xzf 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' | mawk -F\" '/^ *"browser_download_url": ".*x86_64-unknown-linux-gnu\.tar\.gz"$/{print $4;exit}')"
61+
tar xf lychee.tar.gz 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)