File tree 2 files changed +6
-5
lines changed
.github/actions/check-codescanning-config
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -61,11 +61,12 @@ runs:
61
61
- name : Check config
62
62
working-directory : ${{ github.action_path }}
63
63
shell : bash
64
- run : ts-node ./index.ts "${{ runner.temp }}/user-config.yaml" '${{ inputs.expected-config-file-contents }}'
65
-
64
+ env :
65
+ EXPECTED_CONFIG_FILE_CONTENTS : ' ${{ inputs.expected-config-file-contents }}'
66
+ run : ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
66
67
- name : Clean up
67
68
shell : bash
68
69
if : always()
69
70
run : |
70
- rm -rf ${{ runner.temp }} /codescanning-config-cli-test
71
- rm -rf ${{ runner.temp }} /user-config.yaml
71
+ rm -rf $RUNNER_TEMP /codescanning-config-cli-test
72
+ rm -rf $RUNNER_TEMP /user-config.yaml
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ const actualConfig = loadActualConfig()
8
8
9
9
const rawExpectedConfig = process . argv [ 3 ] . trim ( )
10
10
if ( ! rawExpectedConfig ) {
11
- core . info ( 'No expected configuration provided' )
11
+ core . setFailed ( 'No expected configuration provided' )
12
12
} else {
13
13
core . startGroup ( 'Expected generated user config' )
14
14
core . info ( yaml . dump ( JSON . parse ( rawExpectedConfig ) ) )
You can’t perform that action at this time.
0 commit comments