Update Reminder Dates - Free Trial #119
This file contains hidden or 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: Update Reminder Dates - Free Trial | |
| on: | |
| schedule: | |
| - cron: "0 0 * * *" # every midnight UTC | |
| workflow_dispatch: # allows you to run it manually from GitHub UI | |
| jobs: | |
| update: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Call backend to update reminder dates | |
| run: | | |
| curl -v --http1.1 -X PATCH "https://project-final-xhjy.onrender.com/date/update-reminders" \ | |
| -H "Authorization: ${{ secrets.API_SECRET }}" \ | |
| -H "Content-Type: application/json" | |
| - name: Call backend to decrement freeTrial | |
| run: | | |
| curl -v --http1.1 -X PATCH "https://project-final-xhjy.onrender.com/freetrial/update-freetrial" \ | |
| -H "Authorization: ${{ secrets.API_SECRET }}" \ | |
| -H "Content-Type: application/json" | |