Set environment variable in the correct step
This commit is contained in:
parent
3b348d9a54
commit
e12eb8d7c1
1 changed files with 5 additions and 2 deletions
|
|
@ -53,7 +53,6 @@ runs:
|
||||||
db-location: ${{ runner.temp }}/codescanning-config-cli-test
|
db-location: ${{ runner.temp }}/codescanning-config-cli-test
|
||||||
env:
|
env:
|
||||||
CODEQL_ACTION_TEST_MODE: 'true'
|
CODEQL_ACTION_TEST_MODE: 'true'
|
||||||
EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
shell: bash
|
shell: bash
|
||||||
|
|
@ -62,7 +61,11 @@ runs:
|
||||||
- name: Check config
|
- name: Check config
|
||||||
working-directory: ${{ github.action_path }}
|
working-directory: ${{ github.action_path }}
|
||||||
shell: bash
|
shell: bash
|
||||||
run: echo "$EXPECTED_CONFIG_FILE_CONTENTS"; ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
|
env:
|
||||||
|
EXPECTED_CONFIG_FILE_CONTENTS: '${{ inputs.expected-config-file-contents }}'
|
||||||
|
run: |
|
||||||
|
echo "EXPECTED_CONFIG_FILE_CONTENTS = $EXPECTED_CONFIG_FILE_CONTENTS"
|
||||||
|
ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
|
||||||
- name: Clean up
|
- name: Clean up
|
||||||
shell: bash
|
shell: bash
|
||||||
if: always()
|
if: always()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue