Skip to content

Commit 6feca99

Browse files
fix: add bot header for dev-portal api call (#1110)
1 parent 4e48b90 commit 6feca99

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/actions/reload-dev-portal/action.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,8 +73,10 @@ runs:
7373
env:
7474
url: 'https://developer.hashicorp.com/api/revalidate/paths'
7575
auth: 'Authorization: Bearer ${{ inputs.revalidate-token }}'
76+
bot-bypass: '${{ secrets.DEVELOPER_BOT_BYPASS_TOKEN }}'
7677
run: |
7778
curl -X POST "${{ env.url }}" \
7879
-H "${{ env.auth }}" \
7980
-H "Content-Type: application/json" \
81+
-H "X-BOT-BYPASS: ${{ env.bot-bypass }}" \
8082
-d '{"paths": ${{ steps.map-files.outputs.FILES_URLS }} }'

0 commit comments

Comments
 (0)