free-programming-books/.github/workflows/check-urls.yml
2022-08-29 09:15:25 +02:00

25 lines
774 B
YAML

name: Check URLs from changed files
on: [push, pull_request]
permissions:
contents: read
jobs:
job:
permissions:
# Needed for the 'trilom/file-changes-action' action
pull-requests: read
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: trilom/file-changes-action@v1.2.4
id: file_changes
with:
output: ''
- uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- 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@v3
with:
path: ${{ github.workspace }}/*.json