mirror of
https://github.com/EbookFoundation/free-programming-books.git
synced 2026-05-13 08:26:44 +00:00
* remove specific node version so default is 24 * change success to completed in comment pr workflow
35 lines
797 B
YAML
35 lines
797 B
YAML
name: free-programming-books-lint
|
|
|
|
on: [pull_request]
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v5
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v6
|
|
- run: npm install -g free-programming-books-lint
|
|
|
|
- name: Run linter
|
|
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
|
|
|
|
- name: Upload artifact
|
|
uses: actions/upload-artifact@v7
|
|
if: always()
|
|
with:
|
|
name: pr
|
|
path: pr/
|