diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9619910..eb17a0e 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -11,4 +11,5 @@ jobs: steps: - name: Trigger Vercel deploy run: | - curl -X POST ${{ secrets.VERCEL_DEPLOY_LINK_PROD }} + curl -X GET https://tailpipe-io.vercel.app/api/service/revalidate-paths \ + -H "Authorization: Bearer ${{ secrets.TAILPIPE_API_KEY }}" diff --git a/.github/workflows/trigger-tailpipe-io.yml b/.github/workflows/trigger-tailpipe-io.yml index 88c8950..bf93bc4 100644 --- a/.github/workflows/trigger-tailpipe-io.yml +++ b/.github/workflows/trigger-tailpipe-io.yml @@ -37,10 +37,11 @@ jobs: script: | const branchName = 'docs/${{ github.event.pull_request.head.ref }}'; - const response = await fetch('https://tailpipe-io.vercel.app/api/deploy-details', { + const response = await fetch('https://tailpipe-io.vercel.app/api/service/deploy-details', { method: 'POST', headers: { 'Content-Type': 'application/json', + 'Authorization': 'Bearer ${{ secrets.TAILPIPE_API_KEY }}', }, body: JSON.stringify({ branch: branchName }), });