mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-02 03:15:05 -05:00
c8c84d0148
* added date-picker * added state and handlers for closeOnDate * closeDate -> closeOnDate * added endpoint for CRON to close surveys * resolved migrations * fixed datetime format * removed warnings * PR review changes * resolved merge conflicts and package update * add github workflow for cron * change migration order * change migration order * add zod types for closeOnDate --------- Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
24 lines
774 B
YAML
24 lines
774 B
YAML
name: Cron - weeklySummary
|
|
|
|
on:
|
|
# "Scheduled workflows run on the latest commit on the default or base branch."
|
|
# — https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows#schedule
|
|
schedule:
|
|
# Runs “At 00:00.” (see https://crontab.guru)
|
|
- cron: "0 0 * * *"
|
|
jobs:
|
|
cron-weeklySummary:
|
|
env:
|
|
APP_URL: ${{ secrets.APP_URL }}
|
|
CRON_API_KEY: ${{ secrets.CRON_SECRET }}
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: cURL request
|
|
if: ${{ env.APP_URL && env.CRON_SECRET }}
|
|
run: |
|
|
curl ${{ secrets.APP_URL }}/api/cron/close_surveys \
|
|
-X POST \
|
|
-H 'content-type: application/json' \
|
|
-H 'authorization: ${{ secrets.CRON_SECRET }}' \
|
|
--fail
|