-
Notifications
You must be signed in to change notification settings - Fork 2
49 lines (47 loc) · 1.28 KB
/
lint.yaml
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
47
48
49
name: Lint Awesome List
on:
workflow_dispatch: # Enables on-demand/manual triggering
pull_request:
branches:
- main
push:
branches:
- main
jobs:
# awesome-lint:
# strategy:
# fail-fast: false
# matrix:
# files:
# - "README.md"
# runs-on: ubuntu-latest
# steps:
# - name: "checkout repo"
# uses: actions/checkout@v2
# with:
# fetch-depth: 0
# - name: asdf_install
# uses: asdf-vm/actions/install@v1
# - name: "linting: ${{ matrix.files }}"
# run: npx -y awesome-lint ${{ matrix.files }}
awesome-bot:
strategy:
fail-fast: false
matrix:
files:
- "README.md"
runs-on: ubuntu-latest
steps:
- name: "checkout repo"
uses: actions/[email protected]
with:
fetch-depth: 0
- name: "setup ruby"
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.0.1
bundler-cache: true
- name: "install awesome-bot"
run: gem install awesome_bot
- name: "linting: ${{ matrix.files }}"
run: awesome_bot --allow-dupe --white-list $(cat white-list.txt) --allow-redirect ${{ matrix.files }}