mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-05 21:31:03 -05:00
9e9db7103e
* Added Notification API * Added Email functionality to the weekly notification * Added no live survey email notification * Activating weeklySummary notification alertSwitch * Adding check to include only surveys which have weeklySummary enabled * Updated the condition for weekSummary notification check * update UI * Update to reduce number of database calls * Updated the email subject when no survey in weeklysummary * applied pnpm format * update notification settings with new types and fix functionality * loop through all products to send weekly summary email, colocate files * fix build errors * add more types * add vercel.json for cron configuration * remove console.logs, limit responses to 5 per survey * update email subject * improve how responses are displayed in summary email * update email layout * add cron to github action instead of vercel * add github action * add beta flag --------- Co-authored-by: Johannes <johannes@formbricks.com> Co-authored-by: Matthias Nannt <mail@matthiasnannt.com>
24 lines
785 B
YAML
24 lines
785 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 08:00 on Monday.” (see https://crontab.guru)
|
|
- cron: "0 8 * * 1"
|
|
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/weekly_summary \
|
|
-X POST \
|
|
-H 'content-type: application/json' \
|
|
-H 'authorization: ${{ secrets.CRON_SECRET }}' \
|
|
--fail
|