Skip to content

Commit c0229c7

Browse files
authored
Update action.yml
1 parent 9361c44 commit c0229c7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

action.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ inputs:
1414
description: "Custom clean command"
1515
required: false
1616
default: "make clean"
17+
buildPath:
18+
description: "The relative for your build directory"
19+
required: false
20+
default: "."
1721
host:
1822
description: "Custom remote host for HTML report"
1923
required: false
@@ -33,9 +37,14 @@ runs:
3337
wget https://public-installer-pkg.s3.us-east-2.amazonaws.com/coderrect-linux-hpc-0.9.1.tar.gz
3438
tar zxf coderrect-linux-hpc-0.9.1.tar.gz
3539
echo "$PWD/coderrect-linux-hpc-0.9.1/bin" >> $GITHUB_PATH
40+
cd ${{ inputs.buildPath }}
3641
${{ inputs.cleanCommand }}
3742
shell: bash
38-
- run: coderrect ${{ inputs.options }} ${{ inputs.buildCommand }}
43+
- run: |
44+
cd ${{ inputs.buildPath }}
45+
coderrect ${{ inputs.options }} ${{ inputs.buildCommand }}
3946
shell: bash
40-
- run: coderrect -publishResults -report.host=${{ inputs.host }}
47+
- run: |
48+
cd ${{ inputs.buildPath }}
49+
coderrect -publishResults -report.host=${{ inputs.host }}
4150
shell: bash

0 commit comments

Comments
 (0)