mirror of https://github.com/ppy/osu
Fix empty JSON sent on non-`workflow_dispatch` events
This commit is contained in:
parent
c1686fb687
commit
394ff88a62
|
@ -133,7 +133,7 @@ jobs:
|
|||
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-text: ${{ github.event.comment.body || '' }}
|
||||
dispatch-inputs: ${{ toJSON(inputs) }}
|
||||
dispatch-inputs: ${{ (github.event.type == 'workflow_dispatch' && toJSON(inputs)) || '' }}
|
||||
secrets:
|
||||
DIFFCALC_GOOGLE_CREDENTIALS: ${{ secrets.DIFFCALC_GOOGLE_CREDENTIALS }}
|
||||
|
||||
|
|
Loading…
Reference in New Issue