fix(github): let the change gate see new files

git diff reports no change for a path whose only change is an untracked
file, while open/pr.sh stages that path with `git add` and commits it.
Every gated job therefore skipped its PR step whenever an updater added
a file instead of editing one.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
kevinveenbirkenbachandClaude Opus 5 committed 2026-09-22 22:04:46 +02:00
1 parent ca3ab4d009
commit 48525c9c74
1 file changed
+2 -1
+2 -1
View File
@@ -3,7 +3,8 @@ set -euo pipefail
: "${GITHUB_OUTPUT:?Missing GITHUB_OUTPUT}"
if git diff --quiet -- "$@"; then
if git diff --quiet -- "$@" &&
[[ -z "$(git ls-files --others --exclude-standard -- "$@")" ]]; then
echo "changed=false" >>"${GITHUB_OUTPUT}"
else
echo "changed=true" >>"${GITHUB_OUTPUT}"