[ImgBot] Optimize images #43
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 images to webp | |
on: | |
push: | |
paths: | |
- "**.jpg" | |
- "**.jpeg" | |
- "**.png" | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
convert: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install deps | |
run: sudo apt install webp | |
- uses: actions/checkout@v3 # This is a premade github action | |
with: | |
fetch-depth: 2 | |
- name: run convert script | |
run: | | |
.github/convert.sh | |
- uses: stefanzweifel/git-auto-commit-action@v4 | |
with: | |
commit_message: Convert images to webp and update references |