From 521ef021d43fb072bc1f3596e94491530f7ae4a7 Mon Sep 17 00:00:00 2001 From: Ben Grande Date: Fri, 17 Jan 2025 12:08:47 +0100 Subject: [PATCH] ci: skip copyright-lint from GHA Pre-commit action defaults to run with '--all-files', which is great for the other action. For copyright-lint however, it is wrong to assume that all files were changed by a single entity and therefore this can't be tested easily. It could work if a range of files were passed and the author email extracted from each commit. --- scripts/copyright-lint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/copyright-lint.sh b/scripts/copyright-lint.sh index 2eb5fae..01114e9 100755 --- a/scripts/copyright-lint.sh +++ b/scripts/copyright-lint.sh @@ -10,6 +10,10 @@ set -eu +if test -n "${GITHUB_ACTION:-}"; then + exit 0 +fi + command -v git >/dev/null || { printf '%s\n' "Missing program: git" >&2; exit 1; } repo_toplevel="$(git rev-parse --show-toplevel)"