Skip to content

Commit

Permalink
Add dispatchable lint
Browse files Browse the repository at this point in the history
  • Loading branch information
recrwplay committed Jan 19, 2024
1 parent 527b37d commit d620303
Showing 1 changed file with 40 additions and 4 deletions.
44 changes: 40 additions & 4 deletions .github/workflows/docs-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,51 @@
name: "Check Docs style"

on:
push:
branches:
- dev
# push:
# branches:
# - dev
workflow_dispatch:
inputs:
files:
description: 'The files to lint'
default: '.'
type: string
vale-config-file:
description: 'The vale ini file to use'
default: 'lint/vale/.vale.ini'
type: string
use-default-rules:
description: 'Use default rules'
default: true
type: boolean
vale-fail-on-error:
description: 'Report vale errors as a failure'
default: false
type: boolean
reporter:
description: 'Where action messages are reported'
type: string
default: 'github-check'
separator:
description: 'Delimiter for input files or folders'
type: string
default: ''
debug:
description: 'Show debug in log'
default: false
type: boolean
# schedule:
# - cron: '00 16 * * *'

jobs:

docs-lint:
name: Lint docs
uses: ./.github/workflows/reusable-docs-lint.yml
uses: neo4j/docs-tools/.github/workflows/reusable-docs-lint.yml@dev
with:
files: ${{ inputs.files }}
reporter: ${{ inputs.reporter }}
vale-fail-on-error: ${{ inputs.vale-fail-on-error }}
separator: ${{ inputs.separator }}
vale-config-file: "${{ inputs.vale-config-file }}"
debug: ${{ inputs.debug }}

0 comments on commit d620303

Please sign in to comment.