From 785a8a309c9f416cfa80d709a94b3bc0ab9e9248 Mon Sep 17 00:00:00 2001 From: Paulo Chang Date: Thu, 22 Feb 2024 09:47:03 +0100 Subject: [PATCH] Handles 'index' special case --- .github/workflows/push-permissions.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/push-permissions.yaml b/.github/workflows/push-permissions.yaml index f5b829a..30ff51d 100644 --- a/.github/workflows/push-permissions.yaml +++ b/.github/workflows/push-permissions.yaml @@ -21,14 +21,14 @@ jobs: if: (github.event.client_payload.status == 200 || github.event.client_payload.status == 204) && endsWith(github.event.client_payload.path, '.md') runs-on: ubuntu-latest steps: -s - name: Sleep for 90 seconds assuming query-index-search.json will be updated before + - name: Sleep for 90 seconds assuming query-index-search.json will be updated before run: sleep 90s shell: bash - name: Remove .md extension id: removeMd uses: frabert/replace-string-action@v2 with: - pattern: '\.md$' + pattern: '(index)?\.md$' string: ${{ github.event.client_payload.path }} replace-with: '' - name: Find page JSON