Copy 1.0.0 to working spec file location for ongoing development #120
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: validate-markdown | |
# Author: @ralfhandl based on work of @MikeRalphson | |
# Issue: https://github.com/OAI/Overlay-Specification/issues/53 | |
# | |
# This workflow validates markdown files in the versions directory matching *.md | |
# | |
# run this on push to any branch and creation of pull-requests | |
on: [push, pull_request] | |
jobs: | |
mdv: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 # checkout repo content | |
with: | |
fetch-depth: 0 | |
# - name: use the javascript environment from main | |
# run: | | |
# git checkout remotes/origin/main -- package.json package-lock.json .markdownlint.yaml | |
- uses: actions/setup-node@v4 # setup Node.js | |
with: | |
node-version: '20.x' | |
- name: Validate markdown | |
run: npx --yes mdv versions/*.md | |
- name: Lint markdown | |
run: npx --yes markdownlint-cli --config .markdownlint.yaml versions/*.md |