Skip to content

Commit

Permalink
more debug statements
Browse files Browse the repository at this point in the history
  • Loading branch information
derekk-nm committed Sep 27, 2024
1 parent 3742889 commit da80280
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion actions/testmo-create-resources/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,12 @@ runs:
- name: compose TESTMO resources file
run: |
echo "composing TESTMO resources file ${{ inputs.resources_file }} ..."
echo "CWD: $(pwd)"
echo "shell CWD: $(pwd)"
ls -A
compose_testmo_resources_file.py \
--resources_json '${{ inputs.resources_json }}' \
--destination "${{ inputs.resources_file }}"
ls -A
echo "resource file ${{ inputs.resources_json }} contents:"
cat "${{ inputs.resources_file }}"
shell: bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
import argparse
import json
import pathlib
import shlex
import subprocess

if __name__ == "__main__":
Expand Down Expand Up @@ -42,10 +43,12 @@
"--value", fields[field]
]
testmo_command = ["npx", "testmo", "automation:resources:add-field"]
full_command = testmo_command + testmo_args
print(f"running command: {shlex.join(full_command)}") # noqa: T201

# run the command and raise any exceptions
subprocess.run( # noqa: S602
testmo_command + testmo_args,
full_command,
check=True,
cwd=pathlib.Path.cwd(),
shell=True
Expand Down

0 comments on commit da80280

Please sign in to comment.