File tree Expand file tree Collapse file tree 3 files changed +14
-34
lines changed Expand file tree Collapse file tree 3 files changed +14
-34
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -102,9 +102,10 @@ jobs:
102
102
runs-on : ubuntu-latest
103
103
environment : production
104
104
steps :
105
- - name : Invalidate datasheets cache
106
- uses : ./.github/actions/cloudflare-purge
107
- with :
108
- api-token : ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}
109
- zone : ${{ secrets.CLOUDFLARE_ZONE }}
110
- prefix : ${{ vars.DATASHEETS_BASE_URL }}
105
+ - name : Purge Cloudflare Cache
106
+ shell : bash
107
+ run : |
108
+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE }}/purge_cache" \
109
+ -H "Authorization: Bearer ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}" \
110
+ -H "Content-Type: application/json" \
111
+ --data '{"prefixes":["${{ vars.DATASHEETS_BASE_URL }}"]}'
Original file line number Diff line number Diff line change @@ -102,9 +102,10 @@ jobs:
102
102
runs-on : ubuntu-latest
103
103
environment : staging
104
104
steps :
105
- - name : Invalidate datasheets cache
106
- uses : ./.github/actions/cloudflare-purge
107
- with :
108
- api-token : ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}
109
- zone : ${{ secrets.CLOUDFLARE_ZONE }}
110
- prefix : ${{ vars.DATASHEETS_BASE_URL }}
105
+ - name : Purge Cloudflare Cache
106
+ shell : bash
107
+ run : |
108
+ curl -X POST "https://api.cloudflare.com/client/v4/zones/${{ secrets.CLOUDFLARE_ZONE }}/purge_cache" \
109
+ -H "Authorization: Bearer ${{ secrets.CLOUDFLARE_PURGE_API_TOKEN }}" \
110
+ -H "Content-Type: application/json" \
111
+ --data '{"prefixes":["${{ vars.DATASHEETS_BASE_URL }}"]}'
You can’t perform that action at this time.
0 commit comments