Skip to content

Commit

Permalink
chore(CI): update check status get ways
Browse files Browse the repository at this point in the history
  update check status get ways

Log: 更新检测结果获取方式
  • Loading branch information
kuchune committed Sep 19, 2024
1 parent cc4d78b commit 2b84881
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/api-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
uses: reviews-team-test/ci-check-action@send-data
with:
testtype: "apiCheck"
status: ${{ steps.api-check.outputs.isFail == 'true' && '否' || '是' }}
result: ${{ steps.api-check.outputs.isFail == 'true' && '1' || '0' }}
status: ${{ steps.api-check.outputs.summary-status }}
result: ${{ steps.api-check.outputs.summary-result }}
- if: always() && steps.api-check.outputs.isFail == 'true'
run: exit 1

Check warning on line 26 in .github/workflows/api-check.yml

View workflow job for this annotation

GitHub Actions / validate-yaml

26:20 [new-line-at-end-of-file] no new line character at the end of file
2 changes: 1 addition & 1 deletion .github/workflows/static-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
uses: reviews-team-test/ci-check-action@send-data
with:
testtype: "staticCheck"
status: ${{ contains(fromJSON(steps.static-check.outputs.summary-status), 'true') && '否' || '是' }}
status: ${{ steps.static-check.outputs.summary-status }}
result: ${{ steps.static-check.outputs.summary-result }}
- if: always()
continue-on-error: true
Expand Down

0 comments on commit 2b84881

Please sign in to comment.