Skip to content

Commit

Permalink
Merge pull request #14 from turbot/add-auth
Browse files Browse the repository at this point in the history
Add auth
  • Loading branch information
karanpopat authored Jan 8, 2025
2 parents cde1b11 + 9efc340 commit 4223b02
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,5 @@ jobs:
steps:
- name: Trigger Vercel deploy
run: |
curl -X GET https://tailpipe-io.vercel.app/api/revalidate-paths
curl -X GET https://tailpipe-io.vercel.app/api/service/revalidate-paths \
-H "Authorization: Bearer ${{ secrets.TAILPIPE_API_KEY }}"
3 changes: 2 additions & 1 deletion .github/workflows/trigger-tailpipe-io.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }),
});
Expand Down

0 comments on commit 4223b02

Please sign in to comment.