Replace Stefan with Ernest Kissiedu as new moderator (#868) #315
This file contains hidden or 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: Compress Images on Push to main branch | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "**.jpg" | |
| - "**.jpeg" | |
| - "**.png" | |
| jobs: | |
| build: | |
| name: calibreapp/image-actions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout Repo | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Compress Images | |
| id: calibre | |
| uses: calibreapp/image-actions@main | |
| with: | |
| githubToken: ${{ secrets.GITHUB_TOKEN }} | |
| compressOnly: true | |
| - name: Create New Pull Request If Needed | |
| if: steps.calibre.outputs.markdown != '' && github.event.commits[0].author.name != 'GitHubActions' | |
| uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7 | |
| with: | |
| title: Compressed Images | |
| branch-suffix: timestamp | |
| commit-message: Compressed Images | |
| body: ${{ steps.calibre.outputs.markdown }} |