Sha256: 68e42024588d7634797bdb4938a117e404ee05becd38532425e516f4dd0fad59

Contents?: true

Size: 771 Bytes

Versions: 55

Compression:

Stored size: 771 Bytes

Contents

name: Check links in README.md

on:
  schedule:
    # Every 4 hours at X:00
    - cron: "0 */4 * * *"
  workflow_dispatch:

jobs:
  check-links:
    runs-on: ubuntu-latest
    name: Check links in README.md
    steps:
      - uses: actions/checkout@v3

      - name: Get links
        run: |
          grep -Eo "\[[^][]+]\((https?://stytch.com[^()]+)\)" README.md | grep -Eo "https:[^)]*" | sort -u > links.txt
          found_bad=0
          for link in $(cat links.txt); do
            status_code=$(curl -s -o /dev/null -w "%{http_code}" $link)
            if [[ "$status_code" != "200" ]]; then
              echo "$link -> $status_code"
              found_bad=1
            fi
          done
          if [[ $found_bad == 1 ]]; then
            exit 1
          fi

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
stytch-10.9.0 .github/workflows/check-links.yml
stytch-10.8.0 .github/workflows/check-links.yml
stytch-10.7.0 .github/workflows/check-links.yml
stytch-10.6.0 .github/workflows/check-links.yml
stytch-10.5.0 .github/workflows/check-links.yml
stytch-10.4.0 .github/workflows/check-links.yml
stytch-10.2.1 .github/workflows/check-links.yml
stytch-10.1.1 .github/workflows/check-links.yml
stytch-10.0.2 .github/workflows/check-links.yml
stytch-10.0.1 .github/workflows/check-links.yml
stytch-9.12.2 .github/workflows/check-links.yml
stytch-9.12.1 .github/workflows/check-links.yml
stytch-9.11.2 .github/workflows/check-links.yml
stytch-10.3.1 .github/workflows/check-links.yml
stytch-10.3.0 .github/workflows/check-links.yml
stytch-10.2.0 .github/workflows/check-links.yml
stytch-10.1.0 .github/workflows/check-links.yml
stytch-10.0.0 .github/workflows/check-links.yml
stytch-9.12.0 .github/workflows/check-links.yml
stytch-9.11.1 .github/workflows/check-links.yml