fix: one last issue with gitlab

This commit is contained in:
Pierre Mavro
2021-01-14 15:47:59 +01:00
parent c94afa6ae1
commit 9093c5eecd

View File

@@ -47,7 +47,7 @@ jobs:
export GITHUB_BRANCH=$branch
export GITHUB_COMMIT_ID=$GITHUB_SHA
gh_json=$(curl -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/Qovery/engine/pulls?state=open")
gh_pr=$(echo $gh_json | jq --compact-output '.[] | {labels, ref: .head.ref}' | awk "/$branch/")
gh_pr=$(echo $gh_json | jq --compact-output '.[] | {labels, ref: .head.ref}' | grep "$branch")
echo "Pull request info: $(echo $gh_pr)"
num_labels=$(echo $gh_pr | jq '.labels | length')
tests_type="fast_tests"