mirror of
https://github.com/SonarSource/sonarqube-scan-action.git
synced 2025-12-12 17:31:15 +00:00
Experiment
This commit is contained in:
parent
3b1a0d504d
commit
cdb14cba33
1 changed files with 7 additions and 4 deletions
11
action.yml
11
action.yml
|
|
@ -51,9 +51,12 @@ runs:
|
|||
run: echo "${RUNNER_TEMP}/sonar-scanner-cli-${{ inputs.scannerVersion }}-${{ runner.os }}-${{ runner.arch }}/bin" >> $GITHUB_PATH
|
||||
shell: bash
|
||||
- name: Run SonarScanner
|
||||
run: ${GITHUB_ACTION_PATH}/scripts/run-sonar-scanner.sh
|
||||
shell: bash
|
||||
uses: satackey/action-js-inline@v0.0.2
|
||||
with:
|
||||
script: |
|
||||
const core = require('@actions/core')
|
||||
const exec = require('@actions/exec')
|
||||
|
||||
exec.exec('sonar-scanner.bat ' + core.getInput('args'));
|
||||
env:
|
||||
INPUT_ARGS: ${{ inputs.args }}
|
||||
INPUT_PROJECTBASEDIR: ${{ inputs.projectBaseDir }}
|
||||
SONAR_SCANNER_JRE: ${{ runner.temp }}/sonar-scanner-cli-${{ inputs.scannerVersion }}-${{ runner.os }}-${{ runner.arch }}/jre
|
||||
|
|
|
|||
Loading…
Reference in a new issue