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:
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user