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 # Download report artifact
- name: download report artifact - name: download report artifact
id: download_report 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 uses: dawidd6/action-download-artifact@v2
with: with:
workflow: ${{ github.event.workflow_run.workflow_id }} workflow: ${{ github.event.workflow_run.workflow_id }}
@ -127,7 +127,7 @@ jobs:
body: | body: |
## Visual Regression Build for PR #${{ steps.pr.outputs.id }} Failed ❌ ## Visual Regression Build for PR #${{ steps.pr.outputs.id }} Failed ❌
Potential causes: 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 }} - `download report artifact` status: ${{ steps.download_report.outcome }}
- `report upload` status: ${{ steps.report.outcome }} - `report upload` status: ${{ steps.report.outcome }}
<!-- VISUAL_DIFF_REGRESSION_HOOK --> <!-- VISUAL_DIFF_REGRESSION_HOOK -->