feat: add survey schedule option (#2386)

Co-authored-by: Johannes <72809645+jobenjada@users.noreply.github.com>
Co-authored-by: Johannes <johannes@formbricks.com>
Co-authored-by: Piyush Gupta <piyushguptaa2z123@gmail.com>
This commit is contained in:
Matti Nannt
2024-04-08 11:36:06 +02:00
committed by GitHub
parent c44c0b83e3
commit 08ce026c7a
28 changed files with 252 additions and 130 deletions

View File

@@ -1,4 +1,4 @@
name: Cron - reportUsageToStripe
name: Cron - Report usage to Stripe
on:
# "Scheduled workflows run on the latest commit on the default or base branch."

View File

@@ -1,4 +1,4 @@
name: Cron - closeOnDate
name: Cron - Survey status update
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
@@ -16,7 +16,7 @@ jobs:
- name: cURL request
if: ${{ env.APP_URL && env.CRON_SECRET }}
run: |
curl ${{ env.APP_URL }}/api/cron/close_surveys \
curl ${{ env.APP_URL }}/api/cron/survey-status \
-X POST \
-H 'content-type: application/json' \
-H 'x-api-key: ${{ env.CRON_SECRET }}' \

View File

@@ -1,4 +1,4 @@
name: Cron - weeklySummary
name: Cron - Weekly summary
on:
# "Scheduled workflows run on the latest commit on the default or base branch."
@@ -16,7 +16,7 @@ jobs:
- name: cURL request
if: ${{ env.APP_URL && env.CRON_SECRET }}
run: |
curl ${{ env.APP_URL }}/api/cron/weekly_summary \
curl ${{ env.APP_URL }}/api/cron/weekly-summary \
-X POST \
-H 'content-type: application/json' \
-H 'x-api-key: ${{ env.CRON_SECRET }}' \