ci: wrong usage for fromJSON (#46541)

This commit is contained in:
vagusX 2023-12-20 13:45:46 +08:00 committed by GitHub
parent 781028c069
commit ddea828999
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -76,7 +76,7 @@ jobs:
# Download report artifact
- name: download report artifact
id: download_report
if: ${{ fromJSON(needs.upstream-workflow-summary.outputs.build-status) == 'success' || fromJSON(needs.upstream-workflow-summary.outputs.build-status) == 'failure' }}
if: ${{ needs.upstream-workflow-summary.outputs.build-status == 'success' || needs.upstream-workflow-summary.outputs.build-status == 'failure' }}
uses: dawidd6/action-download-artifact@v2
with:
workflow: ${{ github.event.workflow_run.workflow_id }}
@ -127,7 +127,7 @@ jobs:
body: |
## Visual Regression Build for PR #${{ steps.pr.outputs.id }} Failed ❌
Potential causes:
- `upstream workflow` status: ${{ needs.upstream-workflow-summary.outputs.job-status }}
- `upstream workflow` status: ${{ needs.upstream-workflow-summary.outputs.build-status }}
- `download report artifact` status: ${{ steps.download_report.outcome }}
- `report upload` status: ${{ steps.report.outcome }}
<!-- VISUAL_DIFF_REGRESSION_HOOK -->