mirror of
https://github.com/EbookFoundation/free-programming-books.git
synced 2026-05-31 20:55:47 +00:00
Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 5. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](https://github.com/actions/checkout/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '5' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
36 lines
812 B
YAML
36 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@v5
|
|
- name: Use Node.js
|
|
uses: actions/setup-node@v5
|
|
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@v4
|
|
if: always()
|
|
with:
|
|
name: pr
|
|
path: pr/
|