diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..d664981 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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<> $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/urlsup-action@v1.0.0 + with: + # Pass the files and any additional arguments to urlsup + args: ${{ env.FILES_TO_CHECK }} --threads 10 --allow 429