Skip to content

Commit

Permalink
fix: logs
Browse files Browse the repository at this point in the history
  • Loading branch information
ginokent committed Jun 23, 2024
1 parent b5d3e17 commit ab482d7
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,16 +109,6 @@ runs:
#
# main
#
LogshInfo "Create paths.txt (without comments and empty lines)"
(grep -v -e "^[[:space:]]*#" -e "^[[:space:]]*$" <<'EOF' | tee paths.txt) || true
${{ inputs.paths }}
EOF
LogshInfo "Create paths-ignore.txt (without comments and empty lines)"
(grep -v -e "^[[:space:]]*#" -e "^[[:space:]]*$" <<'EOF' | tee paths-ignore.txt) || true
${{ inputs.paths-ignore }}
EOF
if [[ "${{ github.event_name }}" == 'push' ]]; then
LogshInfo "${{ github.event_name }} event"
before="${{ inputs.before }}"
Expand All @@ -132,6 +122,16 @@ runs:
exit 0
fi
LogshDebug "Create paths.txt (without comments and empty lines)"
(grep -v -e "^[[:space:]]*#" -e "^[[:space:]]*$" <<'EOF' | tee paths.txt) || true
${{ inputs.paths }}
EOF
LogshDebug "Create paths-ignore.txt (without comments and empty lines)"
(grep -v -e "^[[:space:]]*#" -e "^[[:space:]]*$" <<'EOF' | tee paths-ignore.txt) || true
${{ inputs.paths-ignore }}
EOF
if ! files_changed=$(git diff --name-only "${before:?}" "${after:?}"); then
LogshWarn "Failed to get diff files. FORCE NOT SKIP."
exit 0
Expand Down

0 comments on commit ab482d7

Please sign in to comment.