File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments