Skip to content

Commit

Permalink
debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyCBakerPhD authored Jun 15, 2024
1 parent 8d926d0 commit 67ed44f
Showing 1 changed file with 8 additions and 21 deletions.
29 changes: 8 additions & 21 deletions .github/workflows/daily_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,19 @@ jobs:
needs: ExampleDataCache
uses: ./.github/workflows/testing_pipelines.yml

Debug:
runs-on: ubuntu-latest
needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests]
steps:
- name: Printout which failed
run: echo ${{ (needs.DevTests.result == 'failure') || (needs.LiveServices.result == 'failure') || (needs.BuildTests.result == 'failure') || (needs.ExampleDataCache.result == 'failure') || (needs.ExampleDataTests.result == 'failure') }}

NotifyOnAnyFailure:
runs-on: ubuntu-latest
needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests]
# If condition needs 'always' to trigger at all
if: always() && ${{ (needs.DevTests.result == 'failure') || (needs.LiveServices.result == 'failure') || (needs.BuildTests.result == 'failure') || (needs.ExampleDataCache.result == 'failure') || (needs.ExampleDataTests.result == 'failure') }}
if: always() && (
${{ (needs.DevTests.result == 'failure')
|| (needs.LiveServices.result == 'failure')
|| (needs.BuildTests.result == 'failure')
|| (needs.ExampleDataCache.result == 'failure')
|| (needs.ExampleDataTests.result == 'failure')
}}
)
steps:
- name: Printout which failed
run: |
echo "DevTests: ${{ needs.DevTests.result }}"
echo "LiveServices: ${{ needs.LiveServices.result }}"
echo "BuildTests: ${{ needs.BuildTests.result }}"
echo "ExampleDataCache: ${{ needs.ExampleDataCache.result }}"
echo "ExampleDataTests: ${{ needs.ExampleDataTests.result }}"
#- name: debugging
# run: export test=${{ (needs.DevTests.result == 'failure') || (needs.LiveServices.result == 'failure') || (needs.BuildTests.result == 'failure') || (needs.ExampleDataCache.result == 'failure') || (needs.ExampleDataTests.result == 'failure') }}
#- name: debugging print
# run: echo $any_failures
#- name: Printout logic trigger
# run: ${{ needs.DevTests.result }} == 'failure' || ${{ needs.LiveServices.result }} == 'failure' || ${{ needs.BuildTests.result }} == 'failure' || ${{ needs.ExampleDataCache.result }} == 'failure' || ${{ needs.ExampleDataTests.result }} == 'failure'
- uses: dawidd6/action-send-mail@v3
with:
server_address: smtp.gmail.com
Expand Down

0 comments on commit 67ed44f

Please sign in to comment.