Skip to content

Commit 9d1378f

Browse files
committed
Use new case expression for evaluating conditional --update-only flag
1 parent 4094755 commit 9d1378f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/actions/post-comment/action.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ runs:
2929
env:
3030
BODY: ${{ inputs.body }}
3131
MARKER: ${{ inputs.marker }}
32-
UPDATE_ONLY: ${{ (inputs.update-only == 'true' && '--update-only') || '' }}
32+
UPDATE_ONLY: ${{ case(inputs.update-only == 'true', '--update-only', '') }}
3333
GH_TOKEN: ${{ inputs.token }}
3434
ISSUE_ID: ${{ inputs.issue-id || github.event.pull_request.number }}
3535
run: |

0 commit comments

Comments
 (0)