Skip to content

Commit

Permalink
docs: run typecheck, but skip if changes only in landing page
Browse files Browse the repository at this point in the history
  • Loading branch information
atilafassina committed Jan 5, 2025
1 parent d5cdbed commit d867bb2
Showing 1 changed file with 21 additions and 10 deletions.
31 changes: 21 additions & 10 deletions .github/workflows/typecheck.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,20 +8,31 @@ on:
- release-*
tags-ignore:
- v*
paths-ignore:
- "docs/**"
- "docs.root.tsx"
- "components/**"
- "**/README.md"
pull_request:
paths-ignore:
- "docs/**"
- "**/*.md"

jobs:
filter-changes:
runs-on: ubuntu-latest
outputs:
should_skip: ${{ steps.changes.outputs.landing_page }}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Get changed files
id: changes
uses: dorny/paths-filter@v2
with:
filters: |
landing_page:
- 'docs/**'
- "docs.root.tsx"
- "components/**"
- "**/README.md"
typecheck:
name: "👀 Typecheck"
if: github.event_name == 'push' || (github.event_name == 'pull_request' && github.event.pull_request.changed_files != 0)
needs: filter-changes
if: needs.filter-changes.outputs.should_skip != 'true'

runs-on: ubuntu-latest

Expand Down

0 comments on commit d867bb2

Please sign in to comment.