From df3a30aeb936774342310c5603c2f5c3615f0045 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Fri, 16 Apr 2021 13:28:19 +0300 Subject: [PATCH 1/2] Add image compressor github action --- .github/workflows/calibreapp-image-action.yml | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/calibreapp-image-action.yml diff --git a/.github/workflows/calibreapp-image-action.yml b/.github/workflows/calibreapp-image-action.yml new file mode 100644 index 0000000000..9cbaa00d90 --- /dev/null +++ b/.github/workflows/calibreapp-image-action.yml @@ -0,0 +1,21 @@ +name: Compress Images +on: + pull_request: + paths: + - '**.jpg' + - '**.jpeg' + - '**.png' + - '**.webp' +jobs: + build: + 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@v2 + + - name: Compress Images + uses: calibreapp/image-actions@main + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 480df3a3e20c539dcc87a916539e4ba3af0333a5 Mon Sep 17 00:00:00 2001 From: EngincanV Date: Fri, 16 Apr 2021 13:45:53 +0300 Subject: [PATCH 2/2] Rename image compression action --- .../{calibreapp-image-action.yml => image-compression.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{calibreapp-image-action.yml => image-compression.yml} (100%) diff --git a/.github/workflows/calibreapp-image-action.yml b/.github/workflows/image-compression.yml similarity index 100% rename from .github/workflows/calibreapp-image-action.yml rename to .github/workflows/image-compression.yml