Cron Jobs #2589
This file contains 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: 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" }' |