23 lines
568 B
YAML
23 lines
568 B
YAML
name: 🗑️ Cache Purge
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- '*'
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
if: github.repository == 'projectdiscovery/nuclei-templates'
|
|
steps:
|
|
# Wait for 5 minutes
|
|
- name: Wait for 2 minutes
|
|
run: sleep 120
|
|
|
|
- name: Purge cache
|
|
uses: jakejarvis/cloudflare-purge-action@master
|
|
env:
|
|
CLOUDFLARE_ZONE: ${{ secrets.CLOUDFLARE_ZONE }}
|
|
CLOUDFLARE_TOKEN: ${{ secrets.CLOUDFLARE_TOKEN }}
|
|
# PURGE_URLS: '["https://version-check.nuclei.sh/versions"]' |