mirror of
https://github.com/github/codeql-action.git
synced 2026-11-10 14:56:01 +00:00
Use new case expression for evaluating conditional --update-only flag
This commit is contained in:
2
.github/actions/post-comment/action.yml
vendored
2
.github/actions/post-comment/action.yml
vendored
@@ -29,7 +29,7 @@ runs:
|
||||
env:
|
||||
BODY: ${{ inputs.body }}
|
||||
MARKER: ${{ inputs.marker }}
|
||||
UPDATE_ONLY: ${{ (inputs.update-only == 'true' && '--update-only') || '' }}
|
||||
UPDATE_ONLY: ${{ case(inputs.update-only == 'true', '--update-only', '') }}
|
||||
GH_TOKEN: ${{ inputs.token }}
|
||||
ISSUE_ID: ${{ inputs.issue-id || github.event.pull_request.number }}
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user