Skip to content

Commit

Permalink
use string concatenation
Browse files Browse the repository at this point in the history
  • Loading branch information
2bndy5 committed Dec 7, 2023
1 parent 97b3102 commit c932cbc
Showing 1 changed file with 18 additions and 17 deletions.
35 changes: 18 additions & 17 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -151,26 +151,27 @@ runs:
- name: Run cpp-linter
id: cpp-linter
shell: pwsh
run: >-
run: |
if ("${{ runner.os }}" -ceq "macOS" -or "${{ runner.os }}" -ceq "Linux") {
Invoke-Expression -Command "$env:GITHUB_ACTION_PATH/venv/bin/Activate.ps1"
}
else {
Invoke-Expression -Command "$env:GITHUB_ACTION_PATH/venv/Scripts/Activate.ps1"
}
Invoke-Expression -Command 'cpp-linter
--style="${{ inputs.style }}"
--extensions=${{ inputs.extensions }}
--tidy-checks="${{ inputs.tidy-checks }}"
--repo-root=${{ inputs.repo-root }}
--version=${{ inputs.version }}
--verbosity=${{ inputs.verbosity }}
--lines-changed-only=${{ inputs.lines-changed-only }}
--files-changed-only=${{ inputs.files-changed-only }}
--thread-comments=${{ inputs.thread-comments }}
--no-lgtm=${{ inputs.no-lgtm }}
--step-summary=${{ inputs.step-summary }}
--ignore="${{ inputs.ignore }}"
--database=${{ inputs.database }}
--file-annotations=${{ inputs.file-annotations }}
--extra-arg="${{ inputs.extra-args }}"'
$app = 'cpp-linter' +
' --style="${{ inputs.style }}"' +
' --extensions=${{ inputs.extensions }}' +
' --tidy-checks="${{ inputs.tidy-checks }}"' +
' --repo-root=${{ inputs.repo-root }}' +
' --version=${{ inputs.version }}' +
' --verbosity=${{ inputs.verbosity }}' +
' --lines-changed-only=${{ inputs.lines-changed-only }}' +
' --files-changed-only=${{ inputs.files-changed-only }}' +
' --thread-comments=${{ inputs.thread-comments }}' +
' --no-lgtm=${{ inputs.no-lgtm }}' +
' --step-summary=${{ inputs.step-summary }}' +
' --ignore="${{ inputs.ignore }}"' +
' --database=${{ inputs.database }}' +
' --file-annotations=${{ inputs.file-annotations }}' +
' --extra-arg="${{ inputs.extra-args }}"'
Invoke-Expression -Command $app

0 comments on commit c932cbc

Please sign in to comment.