Auto Compress Images #6308
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Check URLs from changed files | |
on: [ push, pull_request ] | |
jobs: | |
job: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: trilom/[email protected] | |
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 |