main.yml 644 B

12345678910111213141516171819
  1. name: Check URLs from changed files
  2. on: [push, pull_request]
  3. jobs:
  4. job:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - uses: actions/checkout@v1
  8. - uses: trilom/file-changes-action@v1.2.4
  9. id: file_changes
  10. with:
  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 --allow-ssl || true; done
  17. - uses: actions/upload-artifact@v2
  18. with:
  19. path: ${{ github.workspace }}/*.json