build: add typeRoots to tsconfig as fix for possible conflicts with other types in repositories with this repo as submodule #868
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-links | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref_name }} | |
| cancel-in-progress: true | |
| permissions: read-all | |
| jobs: | |
| changedfiles: | |
| name: changed files | |
| runs-on: ubuntu-latest | |
| env: | |
| PR_HEAD: ${{ github.event.pull_request.head.sha }} | |
| outputs: | |
| files: ${{ steps.changes.outputs.files }} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changes | |
| run: | | |
| files=$(git diff --name-only --diff-filter=ACMRTUXB $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep .md$ | xargs) | |
| if [ -z "$files" ] && git diff --name-only $(git merge-base origin/main $PR_HEAD) $PR_HEAD | grep -q "package.json"; then | |
| files="**/*.md" | |
| fi | |
| echo "files=$files" >> $GITHUB_OUTPUT | |
| check-links: | |
| runs-on: ubuntu-latest | |
| needs: changedfiles | |
| if: ${{needs.changedfiles.outputs.files}} | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
| with: | |
| fetch-depth: 0 | |
| - name: Link Checker | |
| id: lychee | |
| uses: lycheeverse/lychee-action@885c65f3dc543b57c898c8099f4e08c8afd178a2 | |
| with: | |
| args: "--verbose --no-progress ${{needs.changedfiles.outputs.files}} --config .github/lychee.toml" | |
| failIfEmpty: false |