fpb-lint.yml 812 B

123456789101112131415161718192021222324252627282930313233343536
  1. name: free-programming-books-lint
  2. on: [pull_request]
  3. permissions:
  4. contents: read
  5. jobs:
  6. build:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - uses: actions/checkout@v4
  10. - name: Use Node.js
  11. uses: actions/setup-node@v4
  12. with:
  13. node-version: '16.x'
  14. - run: npm install -g free-programming-books-lint
  15. - name: Pull Request
  16. run: |
  17. fpb-lint books casts courses more &> output.log
  18. - name: Clean output and create artifacts
  19. if: always()
  20. run: |
  21. mkdir -p ./pr
  22. echo ${{ github.event.pull_request.html_url }} > ./pr/PRurl
  23. cat output.log | sed -E 's:/home/runner/work/free-programming-books/|⚠.+::' | uniq > ./pr/error.log
  24. - uses: actions/upload-artifact@v4
  25. if: always()
  26. with:
  27. name: pr
  28. path: pr/