Skip to content

Commit

Permalink
refactor: debugging the issue
Browse files Browse the repository at this point in the history
  • Loading branch information
ksachin7 committed Apr 1, 2024
1 parent 8c8d872 commit 363f97d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions .github/workflows/github.action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,10 @@ jobs:
for dir in ui-fundamentals the-wild-oasis movies; do
cd $dir
pwd
# Verify the parent commit
git rev-parse --verify HEAD^
# Check if there are commits in the branch
if [[ $(git rev-parse --verify HEAD^) ]]; then
# if [[ $(git rev-parse --verify HEAD^) ]]; then
if [[ $(git diff --name-only HEAD^ HEAD) ]]; then
echo "New files added/updated in $dir. Proceeding with deployment."
npm install
Expand All @@ -132,9 +134,9 @@ jobs:
else
echo "No new files added/updated in $dir. Skipping deployment."
fi
else
echo "No commits in $dir. Skipping deployment."
fi
# else
# echo "No commits in $dir. Skipping deployment."
# fi
cd ..
done
env:
Expand Down

0 comments on commit 363f97d

Please sign in to comment.