Skip to content

[pull] main from the-turing-way:main #240

[pull] main from the-turing-way:main

[pull] main from the-turing-way:main #240

name: Automatically compress image files
on:
pull_request_target:
# Only trigger when images have changed
paths:
- '**.jpg'
- '**.jpeg'
- '**.png'
- '**.gif'
jobs:
compress-images:
runs-on: ubuntu-latest
environment: compress-images
# Set permissions on GITHUB_TOKEN
permissions:
contents: write # Make commits
pull-requests: write # Post a comment on a PR
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Compress images
uses: crush-pics/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
api-key: ${{ secrets.CRUSHPICS_API_KEY }}