test: Fix awk usage for printing refs

This should print more fields than just 3rd one if they're present.
This commit is contained in:
viq
2021-05-24 23:41:48 +02:00
committed by viq
parent 3e4652dca3
commit 19f404799d

View File

@@ -130,7 +130,7 @@ then
ref=${GITHUB_BASE_REF}
head=${GITHUB_SHA}
else
ref=$(echo $GITHUB_REF | awk 'BEGIN { FS = "/" } ; { print $3 }')
ref=$(echo $GITHUB_REF | cut -d/ -f3-)
head=""
fi
commits=$(git log --no-merges --format=%H origin/${ref}..${head})