Skip to content

Commit 0f85d87

Browse files
committed
ignore unrelated untracked files
1 parent f7d3948 commit 0f85d87

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -441,7 +441,8 @@ runs:
441441
# Stage generated branch content (including deletions) without pathspec errors
442442
# when report.html has never existed.
443443
git add -A -- "${BRANCH}"
444-
if [[ -n "$(git status --porcelain)" ]]; then
444+
# Only proceed when this step actually staged changes for the target path.
445+
if ! git diff --cached --quiet -- "${BRANCH}"; then
445446
git commit -m "update"
446447
447448
max_attempts=5

0 commit comments

Comments
 (0)