diff --git a/.github/workflows/documentation-validation.yml b/.github/workflows/documentation-validation.yml new file mode 100644 index 0000000..e42176a --- /dev/null +++ b/.github/workflows/documentation-validation.yml @@ -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" diff --git a/.github/workflows/tag-release.yml b/.github/workflows/tag-release.yml index 67b7adb..855fa07 100644 --- a/.github/workflows/tag-release.yml +++ b/.github/workflows/tag-release.yml @@ -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"