chore: add sly 3 #151
Workflow file for this run
This file contains 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: Convert all pictures to Webp | |
on: | |
pull_request: | |
paths: | |
- '**.jpg' | |
- '**.png' | |
- '**.jpeg' | |
- '**.webp' | |
jobs: | |
convert_all_to_webp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
with: | |
ref: ${{ github.head_ref }} | |
- name: Install WEBP converter | |
run: | | |
sudo apt-get update && sudo apt install webp | |
sudo chmod ugo+x .github/workflows/toWebp | |
- name: Convert every picture to webp (and replace references) | |
run: | | |
sudo ./.github/workflows/toWebp public | |
sudo ./.github/workflows/toWebp src | |
- name: Compress pictures | |
uses: calibreapp/image-actions@main | |
with: | |
githubToken: ${{ secrets.GITHUB_TOKEN }} | |
ignorePaths: 'node_modules/**,build' | |
compressOnly: true | |
- name: Commit changes into PR | |
uses: stefanzweifel/git-auto-commit-action@v5 |