Skip to content

Commit 53eae76

Browse files
committed
try github actions
fixes EbookFoundation#3583
1 parent 3b9ab68 commit 53eae76

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,16 @@
1-
on:
2-
pull_request:
3-
types: [opened]
4-
issue_comment:
5-
types: [created]
1+
name: check_urls
2+
on: [push]
63
jobs:
7-
deploy:
4+
job:
85
runs-on: ubuntu-latest
96
steps:
10-
- uses: khan/pull-request-comment-trigger@master
11-
id: check
7+
- uses: actions/checkout@v1
8+
- uses: trilom/file-changes-action@v1.2.4
9+
id: file_changes
1210
with:
13-
trigger: '🧪'
14-
reaction: eyes
15-
env:
16-
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
17-
- run: 'echo Found it!'
18-
if: steps.check.outputs.triggered == 'true'
11+
output: ''
12+
- uses: ruby/setup-ruby@v1
13+
with:
14+
ruby-version: 2.4.1
15+
- run: gem install awesome_bot
16+
- run: for i in ${{ steps.file_changes.outputs.files_modified }}; do echo; echo "processing $i"; awesome_bot $i --allow-redirect --allow-dupe --skip-save-results; done

.travis.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,3 @@ jobs:
1212
- npm install -g free-programming-books-lint
1313
script:
1414
- fpb-lint .
15-
16-
-
17-
language: ruby
18-
if: commit_message =~ /check_urls=/
19-
rvm: 2.4.1
20-
before_script:
21-
- gem install awesome_bot
22-
script:
23-
- INPUT=$(echo $TRAVIS_COMMIT_MESSAGE | awk -F= '{print $2}')
24-
- for i in $INPUT; do echo "processing $i"; awesome_bot $i --allow-redirect --allow-dupe --skip-save-results; done

free-programming-books.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -306,7 +306,7 @@
306306

307307
#### Algorithms & Data Structures
308308

309-
* [A Field Guide To Genetic Programming](http://dces.essex.ac.uk/staff/rpoli/gp-field-guide/toc.html) - Riccardo Poli et al.
309+
* [A Field Guide To Genetic Programming](https://b-ok.cc/book/861921/18f698) - Riccardo Poli et al. (PDF)
310310
* [Algorithmic Graph Theory](http://code.google.com/p/graphbook/)
311311
* [Algorithms](https://en.wikibooks.org/wiki/Algorithms) - Wikibooks
312312
* [Algorithms, 4th Edition](http://algs4.cs.princeton.edu/home/) - Robert Sedgewick and Kevin Wayne

0 commit comments

Comments
 (0)