build(fpb-lint): linting errors as PR comments (#10618)

Co-authored-by: ImVector <59611597+LuigiImVector@users.noreply.github.com>
Co-authored-by: David Ordás <3125580+davorpa@users.noreply.github.com>
This commit is contained in:
Seth Falco
2023-10-25 01:57:22 +01:00
committed by GitHub
parent 2fd8f21a78
commit ae612cf6b5
2 changed files with 73 additions and 5 deletions

View File

@@ -1,6 +1,6 @@
name: free-programming-books-lint
on: [push, pull_request]
on: [pull_request]
permissions:
contents: read
@@ -17,7 +17,20 @@ jobs:
with:
node-version: '16.x'
- run: npm install -g free-programming-books-lint
- run: fpb-lint ./books/
- run: fpb-lint ./casts/
- run: fpb-lint ./courses/
- run: fpb-lint ./more/
- name: Pull Request
run: |
fpb-lint books casts courses more &> output.log
- name: Clean output and create artifacts
if: always()
run: |
mkdir -p ./pr
echo ${{ github.event.pull_request.html_url }} > ./pr/PRurl
cat output.log | sed -E 's:/home/runner/work/free-programming-books/|⚠.+::' | uniq > ./pr/error.log
- uses: actions/upload-artifact@v3
if: always()
with:
name: pr
path: pr/