1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 00:35:00 +00:00

chore: fix PR cleanup workflow for forks

This commit is contained in:
Alice Dahan 2025-01-31 10:57:18 +01:00 committed by liliced
parent bb9b9d9877
commit 556193e861

View file

@ -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 }}