-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added dailies with email notifs (#320)
- Loading branch information
1 parent
8750dfe
commit 475ab10
Showing
3 changed files
with
31 additions
and
14 deletions.
There are no files selected for viewing
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Daily Workflows | ||
|
||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 14 * * *" # Daily at 10am EST | ||
|
||
jobs: | ||
update-testing-data: | ||
uses: ./.github/workflows/update-testing-data.yml | ||
|
||
run-tests: | ||
needs: update-testing-data | ||
uses: ./.github/workflows/run-tests.yml | ||
|
||
notify: | ||
runs-on: ubuntu-latest | ||
needs: [update-testing-data, run-tests] | ||
if: ${{ always() && contains(needs.*.result, 'failure') }} | ||
steps: | ||
- uses: dawidd6/action-send-mail@v3 | ||
with: | ||
server_address: smtp.gmail.com | ||
server_port: 465 # TSL | ||
username: ${{ secrets.MAIL_USERNAME }} | ||
password: ${{ secrets.MAIL_PASSWORD }} | ||
subject: ROIExtractors Daily Failure | ||
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }} # add more with commas, no separation | ||
from: NWB Inspector | ||
body: "The daily workflow for ROIExtractors failed: please check status at https://github.com/catalystneuro/roiextractors/actions/workflows/dailies.yml" |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
name: update-testing-data | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" # daily | ||
workflow_dispatch: | ||
|
||
jobs: | ||
|