Skip to content

Updated Note _logs/2025-02-27.md #2463

Updated Note _logs/2025-02-27.md

Updated Note _logs/2025-02-27.md #2463

Workflow file for this run

name: Rescale images
on:
push:
branches:
- main
jobs:
rescale:
name: Resize images
runs-on: ubuntu-latest
strategy:
matrix:
year:
- '2023'
- '2024'
- '2025'
steps:
- uses: actions/[email protected]
- name: Resize ${{ matrix.year }} images
uses: gonzalonaveira/[email protected]
with:
IMAGES_MAX_WIDTH: "1024"
IMAGES_QUALITY: "100"
IMAGES_FORMATS: "jpg, jpge, png"
IMAGES_DIRECTORIES: ${{ matrix.year }}
- name: Commit files
run: |
if [ -z "$(git status --porcelain)" ]; then exit 0;fi
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git add ${{ matrix.year }}
git commit -m "Rescaled ${{ matrix.year }} images"
- name: Push changes
uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: main