Skip to content

Commit

Permalink
Merge pull request #817 from NeurodataWithoutBorders/add_daily_notifi…
Browse files Browse the repository at this point in the history
…cation

Add daily notification
  • Loading branch information
CodyCBakerPhD authored May 30, 2024
2 parents 2c15f7c + 90fc83a commit d7c5773
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/daily_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,3 +35,28 @@ jobs:
ExampleDataTests:
needs: ExampleDataCache
uses: ./.github/workflows/testing_pipelines.yml

NotifyOnAnyFailure:
runs-on: ubuntu-latest
needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests]
if: |
${{
always() && (
needs.DevTests.result == 'failure'
|| needs.LiveServices.result == 'failure'
|| needs.BuildTests.result == 'failure'
|| needs.ExampleDataCache.result == 'failure'
|| needs.ExampleDataTests.result == 'failure'
)
}}
steps:
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
server_port: 465
username: ${{ secrets.MAIL_USERNAME }}
password: ${{ secrets.MAIL_PASSWORD }}
subject: NeuroConv Daily Test Failure
to: ${{ secrets.DAILY_FAILURE_EMAIL_LIST }}
from: NWB Guide Daily Tests
body: "The daily tests workflow failed, please check the status at https://github.com/NeurodataWithoutBorders/nwb-guide/actions/workflows/daily_tests.yml"

0 comments on commit d7c5773

Please sign in to comment.