use bearer auth instead

This commit is contained in:
Jai A 2024-07-31 12:59:09 -07:00
parent 7684a54678
commit f328eec26d
No known key found for this signature in database
GPG Key ID: 9A9F9B7250E9883C

View File

@ -22,7 +22,7 @@ jobs:
if: github.ref == 'refs/heads/main'
run: |
curl -X POST \
-H "Authorization: ${{ secrets.CF_API_TOKEN }}" \
-H "Authorization: Bearer ${{ secrets.CF_API_TOKEN }}" \
-H "Content-Type: application/json" \
--data '{"hosts": ["modrinth.com", "www.modrinth.com"]}' \
https://api.cloudflare.com/client/v4/zones/e39df17b9c4ef44cbce2646346ee6d33/purge_cache