diff --git a/.github/workflows/leanify.yml b/.github/workflows/leanify.yml index 62ee77a..f496cb2 100644 --- a/.github/workflows/leanify.yml +++ b/.github/workflows/leanify.yml @@ -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