mirror of
https://github.com/kdeldycke/awesome-falsehood.git
synced 2025-02-17 15:56:01 -05:00
Lint YAML.
This commit is contained in:
parent
09de08aec0
commit
643ba9fa07
5 changed files with 29 additions and 19 deletions
12
.github/markdown-lint.yaml
vendored
12
.github/markdown-lint.yaml
vendored
|
@ -1,11 +1,15 @@
|
|||
# See example at: https://github.com/avto-dev/markdown-lint/blob/master/lint/config/changelog.yml
|
||||
|
||||
# Line length <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013>
|
||||
# See example at:
|
||||
# https://github.com/avto-dev/markdown-lint/blob/master/lint/config
|
||||
# /changelog.yml
|
||||
---
|
||||
# Line length
|
||||
# https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md013
|
||||
# XXX Temporary disabled because of line continuation edge-case. See:
|
||||
# https://github.com/DavidAnson/markdownlint/issues/302
|
||||
MD013: false
|
||||
|
||||
# Inline HTML <https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033>
|
||||
# Inline HTML
|
||||
# https://github.com/DavidAnson/markdownlint/blob/master/doc/Rules.md#md033
|
||||
# is allowed for beautiful rendering on GitHub.
|
||||
MD033:
|
||||
# Whitelist elements used to render centered images and footnotes on GitHub.
|
||||
|
|
11
.github/workflows/autofix.yaml
vendored
11
.github/workflows/autofix.yaml
vendored
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
name: Autofix
|
||||
on:
|
||||
"on":
|
||||
push:
|
||||
# Only targets default branch to avoid amplification effects of
|
||||
# auto-fixing the exact same stuff in multiple non-rebased branches.
|
||||
|
@ -27,9 +28,11 @@ jobs:
|
|||
# https://github.com/thlorenz/doctoc/pull/145
|
||||
doctoc --github --title "## Contents" readme.md
|
||||
- name: Remove forbidden special TOC entries
|
||||
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.16.0/rules/toc.js#L15-L18
|
||||
run: |
|
||||
gawk -i inplace '!/^- \[(Contributing|Footnotes)\]\(#.+\)$/{print}' ./readme.md
|
||||
# See: https://github.com/sindresorhus/awesome-lint/blob/v0.16.0/rules
|
||||
# /toc.js#L15-L18
|
||||
run: >
|
||||
gawk -i inplace '!/^- \[(Contributing|Footnotes)\]\(#.+\)$/{print}'
|
||||
./readme.md
|
||||
- name: Commit and push changes
|
||||
uses: stefanzweifel/git-auto-commit-action@v4.7.1
|
||||
with:
|
||||
|
|
1
.github/workflows/autolock.yaml
vendored
1
.github/workflows/autolock.yaml
vendored
|
@ -1,5 +1,6 @@
|
|||
# Locks closed issues and pull requests after a period of inactivity, to
|
||||
# prevent spam and noise.
|
||||
---
|
||||
name: Autolock
|
||||
"on":
|
||||
schedule:
|
||||
|
|
11
.github/workflows/labels_sync.yaml
vendored
11
.github/workflows/labels_sync.yaml
vendored
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
name: Sync labels
|
||||
on: issues
|
||||
"on": issues
|
||||
|
||||
jobs:
|
||||
|
||||
|
@ -7,7 +8,7 @@ jobs:
|
|||
name: Sync labels
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: lannonbr/issue-label-manager-action@2.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: lannonbr/issue-label-manager-action@2.0.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
|
13
.github/workflows/lint.yaml
vendored
13
.github/workflows/lint.yaml
vendored
|
@ -1,5 +1,6 @@
|
|||
---
|
||||
name: Lint
|
||||
on:
|
||||
"on":
|
||||
push:
|
||||
pull_request:
|
||||
schedule:
|
||||
|
@ -12,11 +13,11 @@ jobs:
|
|||
name: Lint markdown
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: avto-dev/markdown-lint@v1.4.0
|
||||
with:
|
||||
config: '.github/markdown-lint.yaml'
|
||||
args: './**/*.md'
|
||||
- uses: actions/checkout@v2.3.3
|
||||
- uses: avto-dev/markdown-lint@v1.4.0
|
||||
with:
|
||||
config: '.github/markdown-lint.yaml'
|
||||
args: './**/*.md'
|
||||
|
||||
lint-awesome:
|
||||
name: Lint Awesome list
|
||||
|
|
Loading…
Add table
Reference in a new issue