Skip to content

Commit

Permalink
WS-6310 Added Documentation Validation GitHub Action
Browse files Browse the repository at this point in the history
  • Loading branch information
karinaMeldere committed Jun 17, 2024
1 parent 4b61c2d commit b5e6c1d
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 15 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/documentation-validation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Markdown Lint

on: [ push ]

jobs:
markdown-lint:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: 20.x

- name: Install dependencies
run: npm ci

- name: Run markdownlint
run: npx markdownlint-cli2 "**/*.md"
25 changes: 10 additions & 15 deletions .github/workflows/tag-release.yml
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
name: Tag Release
name: Markdown Lint

on:
push:
branches:
- documentation
on: [push ]

jobs:
tag-release:
markdown-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v1
- name: Bump version and push tag
id: tag_version
uses: martinsbalodis/github-tag-action@7663a7697b99c62632f0701bfe422aeb2ea48f8c
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: documentation
default_bump: patch
- run: echo "${{ steps.tag_version.outputs.new_tag }}"
- name: Check out code
uses: actions/checkout@v3

- name: Run markdownlint
run: |
docker run --rm -v ${{ github.workspace }}:/workdir ghcr.io/davidanson/markdownlint-cli2:latest "**/*.md"

0 comments on commit b5e6c1d

Please sign in to comment.