Skip to content

Merge pull request #728 from calumbell/727/tob-2023-v2-data-bugfix-fa… #12

Merge pull request #728 from calumbell/727/tob-2023-v2-data-bugfix-fa…

Merge pull request #728 from calumbell/727/tob-2023-v2-data-bugfix-fa… #12

Workflow file for this run

name: Clear Cloudflare Cache After Deployments
on:
push:
branches:
- main
- staging
jobs:
clear-cache:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Make script executable
run: chmod +x scripts/clear_cloudflare_cache.sh
- name: Run cache clearing script
env:
DIGITALOCEAN_TOKEN: ${{ secrets.DIGITALOCEAN_TOKEN }}
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_API_TOKEN }}
run: ./scripts/clear_cloudflare_cache.sh "${{ github.sha }}"