mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-12 23:35:58 +00:00
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: ocelot.social check documentation
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- 6816-refactor-docsocelotsocial-ensure-vuepress-does-not-break
|
|
|
|
jobs:
|
|
files-changed:
|
|
name: Detect File Changes - Markdown files
|
|
runs-on: ubuntu-latest
|
|
outputs:
|
|
markdown-files: ${{ steps.changes.outputs.markdown-files }}
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@master
|
|
|
|
- name: Check for markdown file changes
|
|
uses: dorny/paths-filter@v2.11.1
|
|
id: changes
|
|
with:
|
|
token: ${{ github.token }}
|
|
filters: .github/file-filters.yml
|
|
list-files: shell
|
|
|
|
check-markdown-links:
|
|
name: Check Markdown links
|
|
if: needs.files-changed.outputs.markdown-files == 'true'
|
|
needs: files-changed
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@master
|
|
- name: Check Markdown Links
|
|
uses: gaurav-nelson/github-action-markdown-link-check@master
|
|
with:
|
|
use-quiet-mode: 'yes'
|
|
use-verbose-mode: 'no'
|
|
# at any .md file change take the chance to check the links in all .md files
|
|
check-modified-files-only: 'no'
|
|
config-file: '.github/workflows/mlc_config.json'
|
|
base-branch: 'master'
|
|
folder-path: '.'
|