Skip to content

Commit

Permalink
fix: removing file change check
Browse files Browse the repository at this point in the history
  • Loading branch information
ksachin7 committed Apr 1, 2024
1 parent 6f45478 commit 0ec549f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/github.action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ jobs:
cd $dir
# Check if there are commits in the branch
if git diff --name-only HEAD^ HEAD -- $dir; then
echo "New files added/updated in $dir. Proceeding with deployment."
# if git diff --name-only HEAD^ HEAD -- $dir; then
# echo "New files added/updated in $dir. Proceeding with deployment."
# Print all the files changed between the parent commit and the current commit
echo "Files changed:"
Expand All @@ -133,9 +133,9 @@ jobs:
;;
esac
netlify deploy --prod --message "Deploy from GitHub Actions" --dir=dist --site=$NETLIFY_SITE_ID
else
echo "No new files added/updated in $dir. Skipping deployment."
fi
# else
# echo "No new files added/updated in $dir. Skipping deployment."
# fi
cd ..
done
env:
Expand Down

0 comments on commit 0ec549f

Please sign in to comment.