Skip to content

Commit

Permalink
Check only changed files
Browse files Browse the repository at this point in the history
  • Loading branch information
ptgott committed Oct 23, 2024
1 parent 4caa1da commit de287a8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/doc-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ jobs:
pull-requests: read
outputs:
changed: ${{ steps.changes.outputs.changed }}
changed_files: ${{ steps.changes.outputs.changed_files }}
steps:
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
Expand Down Expand Up @@ -93,8 +94,8 @@ jobs:
# Take the comma-separated list of files returned by the "Check for
# relevant changes" job.
separator: ','
files: '${{ github.workspace }}/docs/content/teleport/docs/pages'

workdir: '${{ github.workspace }}/docs/content/teleport'
files: ${{ needs.changes.outputs.changed_files }}
# Restrict the linter to lines modified/added by a PR, not entire
# changed files.
filter_mode: added
Expand Down

0 comments on commit de287a8

Please sign in to comment.