From 6c18504c83e430d7d2fe68661ec3ca8300e36f9b Mon Sep 17 00:00:00 2001 From: Christian Fehmer Date: Tue, 6 Aug 2024 12:12:23 +0200 Subject: [PATCH] ci: skip full checkout on pre-ci on pull requests (@fehmer) (#5738) * ci: skip full checkout on pre-ci on pull requests (@fehmer) * review comments --------- Co-authored-by: Jack --- .github/workflows/monkey-ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/monkey-ci.yml b/.github/workflows/monkey-ci.yml index 500b5f334..b42fe886d 100644 --- a/.github/workflows/monkey-ci.yml +++ b/.github/workflows/monkey-ci.yml @@ -33,8 +33,13 @@ jobs: assets-json: ${{ steps.export-changes.outputs.assets-json }} steps: - - uses: actions/checkout@v4 - - uses: dorny/paths-filter@v3 + - name: Full checkout + uses: actions/checkout@v4 + # paths filter doesn't need checkout on pr + if: github.event_name != 'pull_request' + + - name: Detect changes + uses: dorny/paths-filter@v3 id: filter with: filters: |