From 556193e8613e1ad9a88dd638d0981a23c74378b2 Mon Sep 17 00:00:00 2001 From: Alice Dahan Date: Fri, 31 Jan 2025 10:57:18 +0100 Subject: [PATCH] chore: fix PR cleanup workflow for forks --- .github/workflows/pr-cleanup.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-cleanup.yaml b/.github/workflows/pr-cleanup.yaml index 746e8a1a2..021f15ce9 100644 --- a/.github/workflows/pr-cleanup.yaml +++ b/.github/workflows/pr-cleanup.yaml @@ -13,6 +13,7 @@ jobs: run: echo "name=${{ github.event.number || '${GITHUB_REF#refs/*/}' }}" >> $GITHUB_OUTPUT algolia-rm-temp-index: + if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository needs: deploy-context runs-on: ubuntu-22.04 steps: @@ -26,7 +27,7 @@ jobs: CRISP_API_IDENTIFIER: ${{ secrets.CRISP_API_IDENTIFIER }} CRISP_API_KEY: ${{ secrets.CRISP_API_KEY }} CRISP_WEBSITE_ID: ${{ secrets.CRISP_WEBSITE_ID }} - - name: Remove temporary algolia index + - name: Remove temporary Algolia index run: yarn workspace site algolia:clean env: ALGOLIA_APP_ID: ${{ secrets.ALGOLIA_APP_ID }}