feat(tx-sdk): improve flare-tx-sdk guides #69
Workflow file for this run
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: Check External Links | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| paths: | |
| - "docs/**" | |
| - ".github/workflows/check-external-links.yml" | |
| jobs: | |
| check-external-links: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| issues: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Restore lychee cache | |
| uses: actions/cache@v4 | |
| with: | |
| path: .lycheecache | |
| key: cache-lychee-${{ hashFiles('lychee.toml') }} | |
| restore-keys: cache-lychee- | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@v2 | |
| with: | |
| lycheeVersion: "latest" | |
| args: | | |
| --config lychee.toml | |
| . | |
| fail: true | |
| env: | |
| GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
| - name: Comment on PR if broken links found | |
| if: steps.lychee.outputs.exit_code != 0 | |
| uses: thollander/actions-comment-pull-request@v3 | |
| with: | |
| message: | | |
| ### 🚨 Broken links detected | |
| <details> | |
| <summary>Click to expand</summary> | |
| ```markdown | |
| ${{ steps.lychee.outputs.report }} | |
| ``` | |
| </details> | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |