Fix empty JSON sent on non-`workflow_dispatch` events

This commit is contained in:
Dan Balasescu 2024-11-11 13:11:21 +09:00
parent c1686fb687
commit 394ff88a62
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -133,7 +133,7 @@ jobs:
head-sha: https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha || github.sha }} head-sha: https://github.com/${{ github.repository }}/commit/${{ github.event.pull_request.head.sha || github.sha }}
pr-url: ${{ github.event.issue.pull_request.html_url || '' }} pr-url: ${{ github.event.issue.pull_request.html_url || '' }}
pr-text: ${{ github.event.comment.body || '' }} pr-text: ${{ github.event.comment.body || '' }}
dispatch-inputs: ${{ toJSON(inputs) }} dispatch-inputs: ${{ (github.event.type == 'workflow_dispatch' && toJSON(inputs)) || '' }}
secrets: secrets:
DIFFCALC_GOOGLE_CREDENTIALS: ${{ secrets.DIFFCALC_GOOGLE_CREDENTIALS }} DIFFCALC_GOOGLE_CREDENTIALS: ${{ secrets.DIFFCALC_GOOGLE_CREDENTIALS }}