External link check #46
This file contains hidden or 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: External link check | |
| on: | |
| workflow_dispatch: # on demand launches, if needed | |
| schedule: | |
| - cron: "5 0 * * 2" # 00:05 on Tuesday, near the dependabot.yml | |
| permissions: read-all | |
| env: | |
| # To surpass rate limits for GitHub-based URLS | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| jobs: | |
| linkcheck: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: (docs) Check broken HTTP(S) links | |
| uses: lycheeverse/lychee-action@v2 | |
| id: lychee | |
| with: | |
| args: > | |
| -n -s https -s http --base 'https://docs.tact-lang.org' | |
| --exclude-path docs/node_modules | |
| --exclude '\.(?:jpg|png)$' | |
| docs/README.md './docs/**/*.mdx' | |
| output: "/dev/stdout" | |
| fail: true | |
| failIfEmpty: false | |
| linkcheck-dev: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: (dev-docs) Check broken HTTP(S) links | |
| uses: lycheeverse/lychee-action@v2 | |
| id: lychee-dev | |
| with: | |
| args: > | |
| -n -s https -s http | |
| --exclude-path node_modules --exclude-path docs | |
| './**/*.md' | |
| output: "/dev/stdout" | |
| fail: true | |
| failIfEmpty: false | |
| linkcheck-stdlib: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: (stdlib) Check broken HTTP(S) links in doc comments | |
| uses: lycheeverse/lychee-action@v2 | |
| id: lychee-stdlib | |
| with: | |
| args: > | |
| -n -s https -s http | |
| './src/stdlib/stdlib/**/*.tact' | |
| output: "/dev/stdout" | |
| fail: true | |
| failIfEmpty: false |