mirror of https://github.com/buildpacks/docs.git
Compare commits
3 Commits
0a1cf4880d
...
d882a07f97
Author | SHA1 | Date |
---|---|---|
|
d882a07f97 | |
|
ee5fd47bbe | |
|
4bf460de63 |
|
@ -7,8 +7,18 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0 # Fetch all history to compare changes
|
||||||
|
|
||||||
|
- name: Get changed files
|
||||||
|
id: changed-files
|
||||||
|
uses: tj-actions/changed-files@v41
|
||||||
|
with:
|
||||||
|
files: content/**/*.md # Only check markdown files in the content directory
|
||||||
|
|
||||||
- uses: errata-ai/vale-action@v2.1.1
|
- uses: errata-ai/vale-action@v2.1.1
|
||||||
|
if: steps.changed-files.outputs.any_changed == 'true'
|
||||||
with:
|
with:
|
||||||
fail_on_error: true
|
fail_on_error: true
|
||||||
token: ${{secrets.GITHUB_TOKEN}}
|
token: ${{secrets.GITHUB_TOKEN}}
|
||||||
files: ./content
|
files: ${{ steps.changed-files.outputs.all_changed_files }}
|
Loading…
Reference in New Issue