diff --git a/.github/workflows/fpb-lint.yml b/.github/workflows/fpb-lint.yml index 3762ea6607b3a..b84c3032a063d 100644 --- a/.github/workflows/fpb-lint.yml +++ b/.github/workflows/fpb-lint.yml @@ -2,6 +2,11 @@ name: free-programming-books-lint on: [push, pull_request] +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_RUN_ID: ${{ github.run_id }} + PR: ${{ github.event.pull_request.html_url }} + jobs: build: @@ -14,7 +19,32 @@ 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: Push + if: ${{ github.event_name == 'push' }} + run: | + fpb-lint ./books/ + fpb-lint ./casts/ + fpb-lint ./courses/ + fpb-lint ./more/ + + - name: Pull Request + if: ${{ always() && + github.event_name == 'pull_request' }} + run: | + fpb-lint ./books/ &>> output.log || echo "Analyzing..." + fpb-lint ./casts/ &>> output.log || echo "Analyzing..." + fpb-lint ./courses/ &>> output.log || echo "Analyzing..." + fpb-lint ./more/ &>> output.log || cat output.log + + if [ -s output.log ] + then + gh pr review $PR -r -b "Linter failed, fix the error(s): + \`\`\` + $(cat output.log) + \`\`\`" + gh pr edit $PR --add-label "linter error" + else + gh pr review $PR -a + gh pr edit $PR --remove-label "linter error" + fi diff --git a/books/free-programming-books-langs.md b/books/free-programming-books-langs.md index d267afd864f79..1677dd35b1982 100644 --- a/books/free-programming-books-langs.md +++ b/books/free-programming-books-langs.md @@ -381,7 +381,7 @@ That section got so big, we decided to split it into its own file, the [BY SUBJE * [Advanced Bash-Scripting Guide](http://tldp.org/LDP/abs/html/) - M. Cooper (HTML) * [Bash Guide for Beginners (2008)](http://www.tldp.org/LDP/Bash-Beginners-Guide/html/) - M. Garrels (HTML) * [Bash Notes for Professionals](http://goalkicker.com/BashBook/) - Compiled from StackOverflow documentation (PDF) -* [BASH Programming (2000)](http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html) - Mike G. (HTML) +* [ABASH Programming (2000)](http://tldp.org/HOWTO/Bash-Prog-Intro-HOWTO.html) - Mike G. (HTML) * [Bash Reference Manual](http://www.gnu.org/software/bash/manual/bashref.html) (HTML) * [Bash tutorial](https://web.archive.org/web/20180328183806/http://gdrcorelec.ups-tlse.fr/files/bash.pdf) - Anthony Scemama (PDF) * [BashGuide](http://mywiki.wooledge.org/BashGuide) - Maarten Billemont (HTML) [(PDF)](http://s.ntnu.no/bashguide.pdf) diff --git a/courses/free-courses-en.md b/courses/free-courses-en.md index 58121575ac1cf..c430a1e50cb63 100644 --- a/courses/free-courses-en.md +++ b/courses/free-courses-en.md @@ -105,7 +105,7 @@ ### Algorithms & Data Structures * [Advanced Data Structures](http://ocw.mit.edu/courses/electrical-engineering-and-computer-science/6-851-advanced-data-structures-spring-2012/) - Erik Demaine -* [Algorithm Design and Implementation](https://www.youtube.com/playlist?list=PL6EF0274BD849A7D5) +* [BAlgorithm Design and Implementation](https://www.youtube.com/playlist?list=PL6EF0274BD849A7D5) * [Algorithms](https://www.youtube.com/playlist?list=PLDN4rrl48XKpZkf03iYFl-O29szjTrs_O) - Abdul Bari * [Berkeley University CS 61B: Data Structures](http://datastructur.es/sp16/) * [Berkeley's CS 61B: Data Structures](https://archive.org/details/ucberkeley_webcast_QMV45tHCYNI)