diff --git a/.github/workflows/calibreapp-image-actions.yml b/.github/workflows/calibreapp-image-actions.yml index 3b7c18bf1..485f4c9d0 100644 --- a/.github/workflows/calibreapp-image-actions.yml +++ b/.github/workflows/calibreapp-image-actions.yml @@ -10,16 +10,19 @@ on: - '**.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@master + uses: actions/checkout@v2 - name: Compress Images id: calibre - uses: calibreapp/image-actions@master + uses: calibreapp/image-actions@1.1.0 with: githubToken: ${{ secrets.GITHUB_TOKEN }} + ignorePaths: 'app/src/test' compressOnly: true - name: Create New Pull Request If Needed if: steps.calibre.outputs.markdown != ''