Skip to content

Commit

Permalink
Show all files in debug logs
Browse files Browse the repository at this point in the history
  • Loading branch information
dflook committed Dec 22, 2023
1 parent 2054e4e commit 43120d2
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 4 additions & 4 deletions image/actions.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions image/workflow_commands.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,10 @@ function debug_file() {
fi
}

function debug_tree () {
debug_cmd tree -ah "$@"
}

##
# Set an output value
#
Expand Down

0 comments on commit 43120d2

Please sign in to comment.