mirror of
https://github.com/go-task/task.git
synced 2025-01-20 04:59:37 +02:00
ci: add new workflow to check if versioned_docs has been modified (#1719)
This commit is contained in:
parent
4123ffc780
commit
9d72fa3250
15
.github/workflows/lint.yml
vendored
15
.github/workflows/lint.yml
vendored
@ -41,3 +41,18 @@ jobs:
|
||||
|
||||
- name: check-jsonschema (metaschema)
|
||||
run: check-jsonschema --check-metaschema website/static/schema.json
|
||||
check_doc:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- name: Get changed files in the docs folder
|
||||
id: changed-files-specific
|
||||
uses: tj-actions/changed-files@v44
|
||||
with:
|
||||
files: website/versioned_docs/**
|
||||
|
||||
- uses: actions/github-script@v7
|
||||
if: steps.changed-files-specific.outputs.any_changed == 'true'
|
||||
with:
|
||||
script: |
|
||||
core.setFailed('website/versioned_docs has changed. Instead you need to update the docs in the website/docs folder.')
|
||||
|
Loading…
x
Reference in New Issue
Block a user