Skip to content

Commit

Permalink
[CI/CD] prevent Error reading JToken from JsonReader. Path '', line 0…
Browse files Browse the repository at this point in the history
…, position 0.
  • Loading branch information
remkop committed Mar 24, 2023
1 parent 051a51d commit 86dd182
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ jobs:
shell: bash
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
run: |
case ${{ fromJSON( steps.test-results-nix.outputs.json ).conclusion }} in
case ${{ steps.test-results-nix.outputs.json && fromJSON( steps.test-results-nix.outputs.json ).conclusion }} in
success)
echo "BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
Expand All @@ -79,7 +79,7 @@ jobs:
shell: bash
if: ${{ always() && (matrix.os == 'macos-latest' || matrix.os == 'windows-latest') }}
run: |
case ${{ fromJSON( steps.test-results.outputs.json ).conclusion }} in
case ${{ steps.test-results.outputs.json && fromJSON( steps.test-results.outputs.json ).conclusion }} in
success)
echo "BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
Expand All @@ -92,7 +92,7 @@ jobs:
esac
- name: Create badge (Linux)
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
if: ${{ always() && matrix.os == 'ubuntu-latest' && steps.test-results-nix.outputs.json }}
uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf
with:
label: Tests
Expand All @@ -101,7 +101,7 @@ jobs:
path: badge.svg

- name: Create badge (Win/Mac)
if: ${{ always() && (matrix.os == 'macos-latest' || matrix.os == 'windows-latest') }}
if: ${{ always() && (matrix.os == 'macos-latest' || matrix.os == 'windows-latest') && test-results.outputs.json }}
uses: emibcn/badge-action@4209421db54c8764d8932070ffd0f81715a629bf
with:
label: Tests
Expand Down

0 comments on commit 86dd182

Please sign in to comment.