Update leanify.yml

This commit is contained in:
Boof 2023-06-05 11:41:45 +02:00 committed by GitHub
parent b75e86b383
commit 36209a97b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,4 +1,4 @@
name: "Leanify"
name: "Compress images"
on:
workflow_dispatch:
@ -13,7 +13,7 @@ on:
jobs:
build:
name: Compressing repo with leanify
name: Compressing images
runs-on: ubuntu-latest
steps:
- name: Checkout the repo
@ -21,18 +21,12 @@ jobs:
with:
fetch-depth: 0
- name: Downloading Leanify
run: |
wget https://hexahigh.github.io/cdn/Software/leanify
chmod +x leanify
- name: Running Leanify
run: |
./leanify -d 1 --keep-exif ./
- name: Cleanup
run: |
rm leanify
- name: Compress Images
uses: calibreapp/image-actions@main
with:
# The `GITHUB_TOKEN` is automatically generated by GitHub and scoped only to the repository that is currently running the action. By default, the action cant update Pull Requests initiated from forked repositories.
# See https://docs.github.com/en/actions/reference/authentication-in-a-workflow and https://help.github.com/en/articles/virtual-environments-for-github-actions#token-permissions
githubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v5.0.1