Skip to content

DVC Download Link Check #8772

DVC Download Link Check

DVC Download Link Check #8772

name: DVC Download Link Check
on:
deployment_status:
jobs:
run:
name: Initialize
runs-on: ubuntu-latest
if:
github.event.deployment.ref != 'main' &&
github.event.deployment_status.state == 'success'
steps:
- uses: actions/checkout@v3
- name: Download Link Checker
uses: lycheeverse/[email protected]
with:
args:
--verbose "${{ github.event.deployment.payload.web_url }}" --base
"${{ github.event.deployment.payload.web_url }}" --include
/download/
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
- name: Check for Error Report
if: hashFiles('./lychee/out.md') != ''
run: |
echo 'Errors were reported while checking the DVC download links.'
exit 1