1
0
Fork 0
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:
Kevin Deldycke 2020-10-23 10:17:07 +02:00
parent 09de08aec0
commit 643ba9fa07
No known key found for this signature in database
GPG key ID: C572BB01B1ED5A3A
5 changed files with 29 additions and 19 deletions

View file

@ -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.

View file

@ -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:

View file

@ -1,5 +1,6 @@
# Locks closed issues and pull requests after a period of inactivity, to
# prevent spam and noise.
---
name: Autolock
"on":
schedule:

View file

@ -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 }}

View file

@ -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