Skip to content

Commit

Permalink
use extracted results
Browse files Browse the repository at this point in the history
  • Loading branch information
flub committed Jan 11, 2024
1 parent d38b979 commit 7157d85
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/beta.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,14 @@ jobs:
if: ${{ always() }}
runs-on: ubuntu-latest
steps:
- run: |
- name: Extract test results
run: |
printf '${{ toJSON(needs) }}\n'
result=$(echo '${{ toJSON(needs) }}' | jq .tests.result | tr -d \")
echo $result
echo TESTS_RESULT=$result
echo TESTS_RESULT=$result >>$GITHUB_ENV
- uses: n0-computer/discord-webhook-notify@v1
if: ${{ failure() }}
if: ${{ env.TEST_RESULTS == 'failure' }}
with:
severity: error
details: |
Expand Down

0 comments on commit 7157d85

Please sign in to comment.