diff options
author | XhmikosR <xhmikosr@gmail.com> | 2021-07-17 17:39:28 +0300 |
---|---|---|
committer | XhmikosR <xhmikosr@gmail.com> | 2021-07-19 21:22:15 +0300 |
commit | 95809df91a77d46772142a1507c8e6219317e5f8 (patch) | |
tree | 626eb0106e775e9e2b20b4d1d109d1c8eb19c839 | |
parent | f4e8f5aa3ce78b2dbbeb0f792e8370baea3b046e (diff) |
CI: add `calibreapp/image-actions`
-rw-r--r-- | .github/workflows/calibreapp-image-actions.yml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml new file mode 100644 index 0000000..586b8a3 --- /dev/null +++ b/.github/workflows/calibreapp-image-actions.yml @@ -0,0 +1,24 @@ +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@v2 + + - name: Compress Images + uses: calibreapp/image-actions@1.1.0 + with: + githubToken: ${{ secrets.GITHUB_TOKEN }} |