saasg
This commit is contained in:
parent
ea338b03e8
commit
bb9673ba8a
3
.github/label-pr.yml
vendored
3
.github/label-pr.yml
vendored
@ -38,6 +38,9 @@
|
||||
- regExp: '^LICENSE\.md'
|
||||
labels: ["license"]
|
||||
|
||||
- regExp: '.*\.md'
|
||||
labels: ["markdown"]
|
||||
|
||||
- regExp: '^(Cargo\.toml|requirements\.txt)'
|
||||
labels: ["dependencies"]
|
||||
|
||||
|
6
.github/labels.yml
vendored
6
.github/labels.yml
vendored
@ -100,4 +100,8 @@
|
||||
|
||||
- name: java
|
||||
color: ad690a
|
||||
description: "Relevant to java"
|
||||
description: "Relevant to java"
|
||||
|
||||
- name: markdown
|
||||
color: 454545
|
||||
description: "Relevant to markdown"
|
23
.github/workflows/markdown.yml
vendored
Normal file
23
.github/workflows/markdown.yml
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
name: Markdown
|
||||
|
||||
# Relevant to events - https://help.github.com/en/actions/automating-your-workflow-with-github-actions/events-that-trigger-workflows
|
||||
on:
|
||||
pull_request:
|
||||
types: [synchronize, opened, reopened, ready_for_review]
|
||||
paths:
|
||||
- '**.md'
|
||||
|
||||
jobs:
|
||||
# Linting
|
||||
lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Installing dependencies..
|
||||
run: if ! command -v markdownlint; then npm install -g markdownlint-cli; fi
|
||||
- name: Linting..
|
||||
run: |
|
||||
cd "$GITHUB_WORKSPACE" && for file in $(git ls-tree --name-only -r ${{ github.sha }} | grep '\.md$'); do
|
||||
printf 'linting markdown file %s' "$file"
|
||||
markdownlint "$file" --ignore node_modules
|
||||
done
|
Loading…
Reference in New Issue
Block a user