forked from S2-group/awesome-mde
-
Notifications
You must be signed in to change notification settings - Fork 2
46 lines (46 loc) · 1.2 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: lint
on:
pull_request:
workflow_dispatch:
jobs:
awesome-lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: ''
- run: npx awesome-lint
markdown-lint:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
show-progress: ''
- name: Lint
uses: DavidAnson/markdownlint-cli2-action@v17
with:
globs: '**/*.md'
fix: true
- name: Commit changes from fixing
uses: stefanzweifel/[email protected]
with:
commit_message: Apply automatic changes
branch: ${{ github.head_ref }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
check-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Ruby 2.6
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
- name: Checks
run: |
gem install awesome_bot
awesome_bot README.md --allow-ssl --allow-redirect -a 302,429,403