Skip to content

Commit

Permalink
update yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
SamratSahoo committed Oct 28, 2024
1 parent b04d237 commit 0f57d74
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/email-notification.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,22 @@
name: Run Email Notification on a CRON Schedule

on:
schedule:
- cron: "0 0 * * *"
- cron: "0 0 * * *"
workflow_dispatch:

jobs:
run_deletion_policy:
run_email_notification:
if: github.ref == 'refs/heads/production'
runs-on: ubuntu-latest
name: A job to run the email notification cron

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Run Email Notification Action Step
uses: ./email-notification # Uses an action in the deletion-policy directory
uses: ./email-notification
id: email-notification
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
Expand Down

0 comments on commit 0f57d74

Please sign in to comment.