Skip to content

Commit 5297669

Browse files
Update entrypoint.sh
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent 3119dc4 commit 5297669

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fi
5454
echo -e "\n[INFO] Target branch: ${BRANCH}"
5555

5656
# Enhanced branch handling with proper remote synchronization
57-
if [[ -n "${INPUT_TARGET_BRANCH}" || "${INPUT_ADD_TIMESTAMP}" == "true" ]]; then
57+
if [[ -n "${INPUT_TARGET_BRANCH}" || ("${INPUT_ADD_TIMESTAMP}" == "true" && -n ${FILES_CHANGED}) ]]; then
5858
# Fetch latest changes from remote
5959
echo "[INFO] Fetching latest changes from remote..."
6060
git fetch origin || {

0 commit comments

Comments
 (0)