Lint YAML.
This commit is contained in:
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
|
||||
|
||||
Reference in New Issue
Block a user