From 8eb9656839f2d3fc43de93c9ba2a8be089b9292e Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 21 Feb 2023 01:11:32 +0100 Subject: [PATCH] add image actions workflow --- .../workflows/calibreapp-image-actions.yml | 26 +++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/calibreapp-image-actions.yml diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml new file mode 100644 index 000000000..100e6bd40 --- /dev/null +++ b/.github/workflows/calibreapp-image-actions.yml @@ -0,0 +1,26 @@ +name: Compress Images + +on: + pull_request: + paths: + - '**.jpg' + - '**.jpeg' + - '**.png' + - '**.webp' + +jobs: + build: + # Only run on Pull Requests within the same repository, and not from forks. + if: github.event.pull_request.head.repo.full_name == github.repository + name: calibreapp/image-actions + runs-on: ubuntu-latest + steps: + - name: Checkout Repo + uses: actions/checkout@v3 + with: + persist-credentials: false + + - name: Compress Images + uses: calibreapp/image-actions@1.1.0 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file