[ci] use better license-header impl that is not as cursed
All checks were successful
eden-license / license-header (pull_request) Successful in 29s
All checks were successful
eden-license / license-header (pull_request) Successful in 29s
Signed-off-by: crueter <crueter@eden-emu.dev>
This commit is contained in:
parent
5078bf7fcd
commit
152fe0ea26
1 changed files with 3 additions and 7 deletions
|
@ -1,15 +1,11 @@
|
|||
#!/bin/bash -e
|
||||
#!/bin/sh -e
|
||||
|
||||
HEADER="$(cat "$PWD/.ci/license/header.txt")"
|
||||
|
||||
echo "Getting branch changes"
|
||||
|
||||
BRANCH=`git rev-parse --abbrev-ref HEAD`
|
||||
COMMITS=`git log ${BRANCH} --not master --pretty=format:"%h"`
|
||||
RANGE="${COMMITS[${#COMMITS[@]}-1]}^..${COMMITS[0]}"
|
||||
FILES=`git diff-tree --no-commit-id --name-only ${RANGE} -r`
|
||||
|
||||
#FILES=$(git diff --name-only master)
|
||||
BASE=`git merge-base master HEAD`
|
||||
FILES=`git diff --name-only $BASE`
|
||||
|
||||
echo "Done"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue