calibreapp-image-actions.yml 753 B

1234567891011121314151617181920212223242526272829303132
  1. name: Compress Images
  2. on:
  3. pull_request:
  4. paths:
  5. - '**.jpg'
  6. - '**.jpeg'
  7. - '**.png'
  8. - '**.webp'
  9. permissions:
  10. contents: read
  11. jobs:
  12. build:
  13. # Only run on Pull Requests within the same repository, and not from forks.
  14. if: github.event.pull_request.head.repo.full_name == github.repository
  15. name: calibreapp/image-actions
  16. runs-on: ubuntu-latest
  17. permissions:
  18. # allow calibreapp/image-actions to update PRs
  19. pull-requests: write
  20. steps:
  21. - name: Clone repository
  22. uses: actions/checkout@v4
  23. with:
  24. persist-credentials: false
  25. - name: Compress Images
  26. uses: calibreapp/image-actions@1.1.0
  27. with:
  28. githubToken: ${{ secrets.GITHUB_TOKEN }}