mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-08 11:46:35 +00:00
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>
12 lines
278 B
Bash
Executable File
12 lines
278 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
: "${GITHUB_OUTPUT:?Missing GITHUB_OUTPUT}"
|
|
|
|
if git diff --quiet -- "$@" &&
|
|
[[ -z "$(git ls-files --others --exclude-standard -- "$@")" ]]; then
|
|
echo "changed=false" >>"${GITHUB_OUTPUT}"
|
|
else
|
|
echo "changed=true" >>"${GITHUB_OUTPUT}"
|
|
fi
|