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. fix
  • Loading branch information
remkop committed Mar 24, 2023
1 parent 134565b commit 9e94d0c
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 @@ -61,9 +61,9 @@ jobs:
- name: Set badge color (Linux)
shell: bash
if: ${{ always() && matrix.os == 'ubuntu-latest' }}
if: ${{ always() && matrix.os == 'ubuntu-latest' && steps.test-results-nix.outputs.json }}
run: |
case ${{ steps.test-results-nix.outputs.json && fromJSON( steps.test-results-nix.outputs.json ).conclusion }} in
case ${{ fromJSON( steps.test-results-nix.outputs.json ).conclusion }} in
success)
echo "BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
Expand All @@ -77,9 +77,9 @@ jobs:
- name: Set badge color (Win/Mac)
shell: bash
if: ${{ always() && (matrix.os == 'macos-latest' || matrix.os == 'windows-latest') }}
if: ${{ always() && (matrix.os == 'macos-latest' || matrix.os == 'windows-latest') && steps.test-results.outputs.json }}
run: |
case ${{ steps.test-results.outputs.json && fromJSON( steps.test-results.outputs.json ).conclusion }} in
case ${{ fromJSON( steps.test-results.outputs.json ).conclusion }} in
success)
echo "BADGE_COLOR=31c653" >> $GITHUB_ENV
;;
Expand Down

0 comments on commit 9e94d0c

Please sign in to comment.