Remove lint workflow and modify README generation test action with linting step
This commit is contained in:
parent
e6706d18f5
commit
e3684f0002
|
|
@ -1,17 +0,0 @@
|
|||
name: Awesome Lint CI
|
||||
on:
|
||||
push:
|
||||
branches: ['main']
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
schedule:
|
||||
- cron: "0 7 * * *"
|
||||
jobs:
|
||||
Awesome_Lint:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Run Awesome Lint
|
||||
run: npx awesome-lint
|
||||
|
|
@ -1,19 +1,25 @@
|
|||
name: Test README Generation
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches: ['**']
|
||||
paths:
|
||||
- '_README.md'
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
test-readme:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Generate README.md (Test Only)
|
||||
run: |
|
||||
python3 generate_readme.py _README.md > README.md
|
||||
|
||||
- name: Show README.md output
|
||||
run: |
|
||||
cat README.md
|
||||
|
||||
- name: Run Awesome Lint on Generated README
|
||||
run: npx awesome-lint README.md
|
||||
|
|
|
|||
Loading…
Reference in New Issue