mirror of
https://github.com/namibia/free-programming-books.git
synced 2024-11-11 07:10:58 +00:00
3daf3a8d26
* improvements to check_urls make check have a more descriptive name produce output file instead * upload artifacts * a * change file to trigger test * put things back
20 lines
644 B
YAML
20 lines
644 B
YAML
name: Check URLs from changed files
|
|
on: [push, pull_request]
|
|
jobs:
|
|
job:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- uses: trilom/file-changes-action@v1.2.4
|
|
id: file_changes
|
|
with:
|
|
output: ''
|
|
- uses: ruby/setup-ruby@v1
|
|
with:
|
|
ruby-version: 2.4.1
|
|
- run: gem install awesome_bot
|
|
- run: for i in ${{ steps.file_changes.outputs.files_modified }}; do echo; echo "processing $i"; awesome_bot $i --allow-redirect --allow-dupe --allow-ssl || true; done
|
|
- uses: actions/upload-artifact@v2
|
|
with:
|
|
path: ${{ github.workspace }}/*.json
|