Skip to content

Commit

Permalink
Update link-checker.yml (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
guibranco authored Jul 22, 2024
1 parent 7b1443e commit 35738ba
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/link-checker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,25 @@ jobs:
path: .lycheecache
key: cache-lychee-${{ github.sha }}
restore-keys: cache-lychee-

- name: Attach WireGuard connection
shell: bash
run: |
sudo apt install resolvconf
sudo apt install wireguard
echo "${{ secrets.WIREGUARD_CONFIG }}" > wg0.conf
sudo chmod 600 wg0.conf
sudo wg-quick up ./wg0.conf
- name: Run lychee
uses: lycheeverse/lychee-action@v1.10.0
id: lychee
with:
args: "--base . --cache --max-cache-age 1d ."

- name: Detach WireGuard connection
shell: bash
run: sudo wg-quick down ./wg0.conf

- name: Create issue
if: env.lychee_exit_code != 0
Expand Down

0 comments on commit 35738ba

Please sign in to comment.