Debug only: print environment variable

This commit is contained in:
Angela P Wen 2025-02-24 13:17:35 -08:00
parent 7567eab606
commit 3b348d9a54
2 changed files with 2 additions and 1 deletions

View file

@ -62,7 +62,7 @@ runs:
- name: Check config
working-directory: ${{ github.action_path }}
shell: bash
run: ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
run: echo "$EXPECTED_CONFIG_FILE_CONTENTS"; ts-node ./index.ts "$RUNNER_TEMP/user-config.yaml" "$EXPECTED_CONFIG_FILE_CONTENTS"
- name: Clean up
shell: bash
if: always()

View file

@ -7,6 +7,7 @@ import * as assert from 'assert'
const actualConfig = loadActualConfig()
const rawExpectedConfig = process.argv[3].trim()
core.info("rawExpectedConfig: " + rawExpectedConfig)
if (!rawExpectedConfig) {
core.setFailed('No expected configuration provided')
} else {