forked from heyxyz/hey
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (39 loc) · 1.27 KB
/
cron-jobs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Cron Jobs
on:
schedule:
- cron: '*/30 * * * *'
workflow_dispatch:
jobs:
cleanup-postgres:
name: Cleanup Postgres
runs-on: ubuntu-latest
steps:
- name: Cleanup Postgres
uses: indiesdev/[email protected]
with:
url: https://api.hey.xyz/internal/cron/cleanPostgres
method: 'POST'
body: '{ "secret": "${{ secrets.SECRET }}" }'
headers: '{ "Content-Type": "application/json", "Referer": "https://hey.xyz" }'
cleanup-clickhouse:
name: Cleanup Clickhouse
runs-on: ubuntu-latest
steps:
- name: Cleanup Clickhouse
uses: indiesdev/[email protected]
with:
url: https://api.hey.xyz/internal/cron/cleanClickhouse
method: 'POST'
body: '{ "secret": "${{ secrets.SECRET }}" }'
headers: '{ "Content-Type": "application/json", "Referer": "https://hey.xyz" }'
downgrade-profiles:
name: Downgrade Profiles
runs-on: ubuntu-latest
steps:
- name: Downgrade Profiles
uses: indiesdev/[email protected]
with:
url: https://api.hey.xyz/internal/cron/downgradePro
method: 'POST'
body: '{ "secret": "${{ secrets.SECRET }}" }'
headers: '{ "Content-Type": "application/json", "Referer": "https://hey.xyz" }'