Fix server intro not ending when installing loader #832
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Clear pages cache | |
on: | |
push: | |
branches: | |
- prod | |
jobs: | |
wait: | |
if: github.repository_owner == 'modrinth' | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
deployments: write | |
steps: | |
- name: Cloudflare Pages deployment | |
uses: WalshyDev/cf-pages-await@v1 | |
with: | |
apiToken: ${{ secrets.CF_API_TOKEN }} | |
accountId: '9ddae624c98677d68d93df6e524a6061' | |
project: 'frontend' | |
commitHash: ${{ steps.push-changes.outputs.commit-hash }} | |
- name: Purge cache | |
if: github.ref == 'refs/heads/prod' | |
run: | | |
curl -X POST \ | |
-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 |