Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

image-actions.yml 1.3 KB

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
  1. name: Compress Images
  2. on:
  3. pull_request:
  4. # Run Image Actions when JPG, JPEG, PNG or WebP files are added or changed.
  5. # See https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#onpushpull_requestpaths for reference.
  6. paths:
  7. - '**.jpg'
  8. - '**.jpeg'
  9. - '**.png'
  10. - '**.webp'
  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. permissions: write-all
  17. runs-on: ubuntu-latest
  18. steps:
  19. - name: Checkout Repo
  20. uses: actions/checkout@v4
  21. - name: Compress Images
  22. uses: calibreapp/image-actions@main
  23. with:
  24. # The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action can’t update Pull Requests initiated from forked repositories.
  25. # See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
  26. githubToken: ${{ secrets.GITHUB_TOKEN }}
  27. jpegQuality: '90'
  28. jpegProgressive: false
  29. pngQuality: '90'
  30. webpQuality: '90'
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...