free-programming-books/.github/workflows/fpb-lint.yml
Seth Falco ae612cf6b5
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>
2023-10-24 20:57:22 -04:00

37 lines
812 B
YAML

name: free-programming-books-lint
on: [pull_request]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '16.x'
- run: npm install -g free-programming-books-lint
- 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/