mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-29 14:30:52 +00:00
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:
1 parent
ca3ab4d009
commit
48525c9c74
1 file changed
+2
-1
@@ -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}"
|
||||
|
||||
Reference in new issue
Block a user