Skip to content

Commit

Permalink
chore: Add logs for debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent committed Jun 23, 2024
1 parent 83f8c36 commit d05aa23
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -137,20 +137,25 @@ runs:
LogshWarn "Failed to get diff files. FORCE NOT SKIP."
exit 0
fi
LogshDebug "==> files_changed <=="
LogshDebug "${files_changed:-(empty)}"
LogshDebug "---------------------"
if [[ -n "${{ inputs.paths-ignore }}" ]]; then
files_changed=$(echo "${files_changed:?}" | grep -Ev -f paths-ignore.txt) || true
LogshDebug "==> files_changed <=="
LogshDebug "==> files_changed (applied paths-ignore) <=="
LogshDebug "${files_changed:-(empty)}"
LogshDebug "--------------------------------------------"
else
LogshInfo "paths-ignore is empty"
files_changed=$(echo "${files_changed:?}")
fi
if [[ -n "${{ inputs.paths }}" ]]; then
files_changed=$(echo "${files_changed:?}" | grep -E -f paths.txt) || true
LogshDebug "==> files_changed <=="
LogshDebug "==> files_changed (applied paths) <=="
LogshDebug "${files_changed:-(empty)}"
LogshDebug "-------------------------------------"
else
LogshInfo "paths is empty"
files_changed=$(echo "${files_changed:?}")
Expand Down

0 comments on commit d05aa23

Please sign in to comment.