Skip to content

Commit

Permalink
FIX Don't try to build resources that can't be built (#38)
Browse files Browse the repository at this point in the history
  • Loading branch information
GuySartorelli authored May 23, 2024
1 parent 78de143 commit dfb7782
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -239,10 +239,10 @@ runs:
git pull
# Determine if we will rebuild dist file during merge-up
# This is based simply on if there are changes in the client/ directory
# This is based simply on if there are changes in the client/ directory and if there's a package.json file
REBUILD=0
CLIENT_DIFF_FILES=$(git diff --name-only $INTO_BRANCH...$FROM_BRANCH | grep -P ^client/) || true
if [[ $CLIENT_DIFF_FILES != "" ]]; then
if [[ $CLIENT_DIFF_FILES != "" && -f "package.json" ]]; then
REBUILD=1
fi
echo "CLIENT_DIFF_FILES is:"
Expand Down

0 comments on commit dfb7782

Please sign in to comment.