Skip to content

Commit

Permalink
feat: job for deleting old IPs
Browse files Browse the repository at this point in the history
  • Loading branch information
JuroUhlar committed Dec 22, 2023
1 parent 7d223c5 commit 7e22627
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/delete-expired-ip-blocks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# I need to test this but this is the general idea
name: Delete expired IP blocks

on:
schedule:
# Every hour?
- cron: '0 */1 * * *'

jobs:
delete_ips:
runs-on: ubuntu-latest

steps:
- name: Send DELETE request
run: |
curl -X DELETE -H "Content-Type: application/json" -d '{"key": "${{ secrets.DELETE_OLD_BLOCKED_IPS_KEY }}"}' http://staging.fingerprinthub.com/api/bot-firewall/delete-old-blocked-ips

0 comments on commit 7e22627

Please sign in to comment.