-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
WS-6310 Added Documentation Validation GitHub Action
- Loading branch information
1 parent
4b61c2d
commit b5e6c1d
Showing
2 changed files
with
32 additions
and
15 deletions.
There are no files selected for viewing
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
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" |
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
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" |