Skip to content

Commit 1845696

Browse files
authored
Detect dist_path same with repo name
1 parent d3825fd commit 1845696

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

actions/smart-vercel/action.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ runs:
183183
cp -r ${DIR_NAME} ${REPO_NAME}
184184
fi
185185
else
186-
mv ${DIST_PATH} ${REPO_NAME}
186+
if [ "${DIS_PATH}" != "${REPO_NAME}" ]; then
187+
mv ${DIST_PATH} ${REPO_NAME}
188+
fi
187189
fi
188190
189191
PATH_VERCEL_JSON=./vercel.json

0 commit comments

Comments
 (0)