mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
Update leanify.yml
This commit is contained in:
parent
b75e86b383
commit
36209a97b5
22
.github/workflows/leanify.yml
vendored
22
.github/workflows/leanify.yml
vendored
@ -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 can’t 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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user