calibreapp-image-actions.yml 620 B

1234567891011121314151617181920212223242526
  1. name: Compress Images
  2. on:
  3. pull_request:
  4. paths:
  5. - '**.jpg'
  6. - '**.jpeg'
  7. - '**.png'
  8. - '**.webp'
  9. jobs:
  10. build:
  11. # Only run on Pull Requests within the same repository, and not from forks.
  12. if: github.event.pull_request.head.repo.full_name == github.repository
  13. name: calibreapp/image-actions
  14. runs-on: ubuntu-latest
  15. steps:
  16. - name: Checkout Repo
  17. uses: actions/checkout@v4
  18. with:
  19. persist-credentials: false
  20. - name: Compress Images
  21. uses: calibreapp/image-actions@main
  22. with:
  23. githubToken: ${{ secrets.GITHUB_TOKEN }}