Skip to content

Commit

Permalink
check error
Browse files Browse the repository at this point in the history
  • Loading branch information
yhmtsai committed Apr 9, 2021
1 parent bb1ca81 commit 85c0636
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ trigger_pipeline:
echo "Find the corresponding Pull Request - ${PR_ID}"
echo "Check whether the labels contain ST:ready-to-merge or ST:run-full-test"
ENABLE_FULL_PIPELINE=$(curl -X GET -s -H "Accept: application/vnd.github.v3+json" "https://api.github.com/repos/ginkgo-project/ginkgo/issues/${PR_ID}" | jq -er 'any( [.labels | .[] | .name ] | .[] ; . == "ST:ready-to-merge" or . == "ST:run-full-test")')
echo "ENABLE_FULL_PIPELINE ${ENABLE_FULL_PIPELINE}"
if [[ "${ENABLE_FULL_PIPELINE}" == "true" ]]; then
echo "trigger full pipeline"
curl -X POST -F token=${CI_JOB_TOKEN} -F "ref=${CI_COMMIT_REF_NAME}" -F "variables[STATUS_CONTEXT]=full" https://gitlab.com/api/v4/projects/6431537/trigger/pipeline
else
echo "does not contain required label"
fi
Expand Down

0 comments on commit 85c0636

Please sign in to comment.