Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Validate that links are up
on: push

jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4 # Required for urlsup

# This step writes the files with URLs to the env variable $FILES_TO_CHECK to be used for the later step
- name: Find files with links
shell: bash
run: |
echo 'FILES_TO_CHECK<<EOF' >> $GITHUB_ENV

# --- This is where we define what files to check ---

# $GITHUB_WORKSPACE is where our files live
# Ignore dirs and only include markdown files

files_to_check="README.md"

echo $files_to_check >> $GITHUB_ENV
echo 'EOF' >> $GITHUB_ENV

- name: Validate that links are up
uses: simeg/[email protected]
with:
# Pass the files and any additional arguments to urlsup
args: ${{ env.FILES_TO_CHECK }} --threads 10 --allow 429