Skip to content

Commit 866bce4

Browse files
committed
chore: burst ISR cache only on master deployments
1 parent 5afb93b commit 866bce4

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/ci-cd.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -403,8 +403,8 @@ jobs:
403403
working-directory: packages/nuqs
404404
env:
405405
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
406-
- name: Invalidate ISR cache for NPM in the docs
407-
run: curl -s "https://nuqs.dev/api/isr?tag=npm-version&token=${{ secrets.ISR_TOKEN }}"
408-
- name: Invalidate ISR cache for contributors in the docs
409-
if: ${{ github.ref_name == 'next' && github.event_name == 'push' }}
410-
run: curl -s "https://nuqs.dev/api/isr?tag=contributors&token=${{ secrets.ISR_TOKEN }}"
406+
- name: Invalidate ISR caches in the docs
407+
if: ${{ github.ref_name == 'master' && github.event_name == 'push' }}
408+
run: |
409+
curl -s "https://nuqs.dev/api/isr?tag=npm-version&token=${{ secrets.ISR_TOKEN }}"
410+
curl -s "https://nuqs.dev/api/isr?tag=contributors&token=${{ secrets.ISR_TOKEN }}"

0 commit comments

Comments
 (0)