Skip to content

Commit

Permalink
chore: github action for unchanged commits fixed (#3895)
Browse files Browse the repository at this point in the history
  • Loading branch information
vinayteki95 authored Nov 20, 2024
2 parents b5726d2 + cd5e505 commit 6ec379d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ jobs:

- name: Filter JS/TS Files
run: |
echo "${{ steps.files.outputs.added_modified }}" | tr ' ' '\n' | grep -E '\.(js|ts|jsx|tsx)$' > changed_files.txt
if [ ! -s changed_files.txt ]; then
changed_files=$(echo "${{ steps.files.outputs.added_modified }}" | tr ' ' '\n' | grep -E '\.(js|ts|jsx|tsx)$' || true)
if [ -z "$changed_files" ]; then
echo "No JS/TS files to format or lint."
exit 0
fi
Expand Down

0 comments on commit 6ec379d

Please sign in to comment.