feat: adding commit id to gitlab ci tests

This commit is contained in:
Pierre Mavro
2020-11-03 22:53:46 +01:00
committed by Pierre Mavro
parent 63ff42ebb5
commit 43ea01f35c
2 changed files with 2 additions and 1 deletions

View File

@@ -33,6 +33,7 @@ jobs:
branch=$(echo ${{github.ref}} | sed -r 's/.+\/(.+)/\1/')
echo "Branch name: $branch"
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/")
echo "Pull request info: $(echo $gh_pr)"