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 7485ba8 commit 4a33bc2
Showing 1 changed file with 3 additions and 10 deletions.
13 changes: 3 additions & 10 deletions .github/workflows/daily_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,11 @@ jobs:
needs: ExampleDataCache
uses: ./.github/workflows/testing_pipelines.yml

CalculateNotification:
runs-on: ubuntu-latest
needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests]
steps:
- name: SetEnvironmentVariable
run: echo "ANY_FAILURES=${{ (needs.DevTests.result == 'failure') || (needs.LiveServices.result == 'failure') || (needs.BuildTests.result == 'failure') || (needs.ExampleDataCache.result == 'failure') || (needs.ExampleDataTests.result == 'failure') }}" >> "$GITHUB_ENV"

NotifyOnAnyFailure:
runs-on: ubuntu-latest
needs: [DevTests, LiveServices, BuildTests, ExampleDataCache, ExampleDataTests]
# If condition needs 'always' to trigger at all
if: always() && ${{ env.ANY_FAILURES }}
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: |
Expand All @@ -58,8 +51,8 @@ jobs:
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: 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
Expand Down

0 comments on commit 4a33bc2

Please sign in to comment.