From 43120d2fbf520fab6d446a278dbb2230e7911e3a Mon Sep 17 00:00:00 2001 From: Daniel Flook Date: Fri, 22 Dec 2023 10:55:52 +0000 Subject: [PATCH] Show all files in debug logs --- image/actions.sh | 8 ++++---- image/workflow_commands.sh | 4 ++++ 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/image/actions.sh b/image/actions.sh index 1ed548be..40c5082e 100644 --- a/image/actions.sh +++ b/image/actions.sh @@ -55,9 +55,9 @@ source /usr/local/workflow_commands.sh function debug() { debug_cmd pwd debug_cmd printenv - debug_cmd tree "$HOME" + debug_tree "$HOME" debug_cmd ls -la "$HOME" - debug_cmd tree "$PERSISTED_HOME" + debug_tree "$PERSISTED_HOME" debug_cmd ls -la "$PERSISTED_HOME" debug_file "$GITHUB_EVENT_PATH" echo @@ -492,10 +492,10 @@ export STEP_TMP_DIR JOB_TMP_DIR WORKSPACE_TMP_DIR function fix_owners() { if [[ -d "$GITHUB_WORKSPACE/.dflook-terraform-github-actions" ]]; then chown -R --reference "$GITHUB_WORKSPACE" "$GITHUB_WORKSPACE/.dflook-terraform-github-actions" || true - debug_cmd tree "$GITHUB_WORKSPACE/.dflook-terraform-github-actions" + debug_tree "$GITHUB_WORKSPACE/.dflook-terraform-github-actions" fi - debug_cmd tree "$PERSISTED_HOME" + debug_tree "$PERSISTED_HOME" if [[ -d "$PERSISTED_HOME/.dflook-terraform-github-actions" ]]; then chown -R --reference "$PERSISTED_HOME" "$PERSISTED_HOME/.dflook-terraform-github-actions" || true fi diff --git a/image/workflow_commands.sh b/image/workflow_commands.sh index 88b8fcb1..6d6344fd 100644 --- a/image/workflow_commands.sh +++ b/image/workflow_commands.sh @@ -50,6 +50,10 @@ function debug_file() { fi } +function debug_tree () { + debug_cmd tree -ah "$@" +} + ## # Set an output value #