A pushed version that is already released no longer starts the forty-minute release builds; CI still tests every push. A package version waiting for the next release is a notice in App packages instead of a failure. The web build keeps saving its storage while practice packs install (up to about ten seconds of retries), and the package compatibility check asks the node again while a deploy restarts it. The pre-push hook now runs the quick checks that match the pushed files (versions, translations and fonts, UI APIs, app bundles, workflows, script syntax); make pre-push-check runs them by hand.
19 lines
446 B
Bash
Executable File
19 lines
446 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
|
|
tmp=$(mktemp "${TMPDIR:-/tmp}/inbe-pre-push.XXXXXX")
|
|
trap 'rm -f "$tmp"' EXIT
|
|
cat > "$tmp"
|
|
|
|
if command -v git-lfs >/dev/null 2>&1; then
|
|
git lfs pre-push "$@" < "$tmp"
|
|
elif git lfs version >/dev/null 2>&1; then
|
|
git lfs pre-push "$@" < "$tmp"
|
|
else
|
|
printf '%s\n' "This repository uses Git LFS, but git-lfs is not available." >&2
|
|
exit 2
|
|
fi
|
|
|
|
scripts/check-secrets.py --pre-push "$@" < "$tmp"
|
|
scripts/pre-push-checks.py < "$tmp"
|