Skip to content

Commit

Permalink
Merge pull request #112 from OCHA-DAP/HDXDSYS-780-schedule
Browse files Browse the repository at this point in the history
Enable db export schedule
  • Loading branch information
b-j-mills authored Jun 11, 2024
2 parents 9fdb78f + a3d1208 commit aa1629a
Showing 1 changed file with 18 additions and 3 deletions.
21 changes: 18 additions & 3 deletions .github/workflows/db_export.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@ name: Database Export

on:
workflow_dispatch: # Add a run button on GitHub
push:
tags:
- "*"
release:
types: [published]
schedule:
- cron: "2 22,11 * * *"

jobs:
build:
Expand Down Expand Up @@ -63,3 +64,17 @@ jobs:
with:
name: warnings-errors
path: warnings_errors.log

- name: Send mail
if: failure()
uses: dawidd6/action-send-mail@v3
with:
server_address: ${{secrets.EMAIL_SERVER}}
server_port: ${{secrets.EMAIL_PORT}}
username: ${{secrets.EMAIL_USERNAME}}
password: ${{secrets.EMAIL_PASSWORD}}
subject: "FAILED: ${{github.repository}} database export job"
body: GitHub Actions database export job for ${{github.repository}} failed!
to: ${{secrets.EMAIL_LIST}}
from: ${{secrets.EMAIL_FROM}}
content_type: text/html

0 comments on commit aa1629a

Please sign in to comment.