[ci] use better license-header impl that is not as cursed
All checks were successful
eden-license / license-header (pull_request) Successful in 26s

Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
crueter 2025-08-21 16:54:21 -04:00
parent bc2147ab21
commit b9b18458fb
Signed by: crueter
GPG key ID: 425ACD2D4830EBC6

View file

@ -1,15 +1,11 @@
#!/bin/bash -e #!/bin/sh -e
HEADER="$(cat "$PWD/.ci/license/header.txt")" HEADER="$(cat "$PWD/.ci/license/header.txt")"
echo "Getting branch changes" echo "Getting branch changes"
BRANCH=`git rev-parse --abbrev-ref HEAD` BASE=`git merge-base master HEAD`
COMMITS=`git log ${BRANCH} --not master --pretty=format:"%h"` FILES=`git diff --name-only $BASE`
RANGE="${COMMITS[${#COMMITS[@]}-1]}^..${COMMITS[0]}"
FILES=`git diff-tree --no-commit-id --name-only ${RANGE} -r`
#FILES=$(git diff --name-only master)
echo "Done" echo "Done"