mirror of
https://github.com/getsops/sops.git
synced 2026-02-05 12:45:21 +01:00
40 lines
790 B
YAML
40 lines
790 B
YAML
name: "Docs"
|
|
|
|
on:
|
|
push:
|
|
branches: [ "main" ]
|
|
pull_request:
|
|
branches: [ "main" ]
|
|
# Only consider changes to documentation
|
|
paths:
|
|
- '**/*.md'
|
|
- '**/*.rst'
|
|
- '**/*.txt'
|
|
schedule:
|
|
- cron: '25 6 * * 3'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
documentation:
|
|
name: Lint RST and MD files
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
with:
|
|
persist-credentials: false
|
|
|
|
- name: Install rstcheck and markdownlint
|
|
run: |
|
|
pip install rstcheck
|
|
sudo gem install mdl
|
|
|
|
- name: Run rstcheck on all RST files
|
|
run: make checkrst
|
|
|
|
- name: Run mdl on all MD files
|
|
run: make checkmd
|