DVC Download Link Check #8707
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |