Backup logbook entries #1528
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: Rescale images | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
rescale: | |
name: Resize images | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2.3.4 | |
- name: Resize 2021 images | |
uses: sanderbaas/img-resizer-inplace-idempotent@v2 | |
with: | |
target: '2021' | |
width: 1024 | |
height: 900 | |
- name: Resize 2022 images | |
uses: sanderbaas/img-resizer-inplace-idempotent@v2 | |
with: | |
target: '2022' | |
width: 1024 | |
height: 900 | |
- name: Resize 2023 images | |
uses: sanderbaas/img-resizer-inplace-idempotent@v2 | |
with: | |
target: '2023' | |
width: 1024 | |
height: 900 | |
- 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 commit -m "Rescaled images" -a | |
- name: Push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: main |