Skip to content

Commit

Permalink
ci: skip copyright-lint from GHA
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
ben-grande committed Jan 17, 2025
1 parent 085661e commit 521ef02
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions scripts/copyright-lint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand Down

0 comments on commit 521ef02

Please sign in to comment.