New DO picture #331
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
# This shrinks any pngs that are new in this PR, runs on push. | |
name: Shrink images | |
on: | |
push: | |
branches-ignore: | |
- main | |
paths: | |
- 'astro/public/**' | |
jobs: | |
shrink: | |
runs-on: ubuntu-latest | |
env: | |
GH_TOKEN: ${{ github.token }} | |
TINYPNG_API_KEY: "${{ secrets.TINYPNG_API_KEY }}" | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Shrink images using tinypng | |
run: | | |
bash ./src/new-images-shrink.sh | |
shell: bash | |
- uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Shrink images |