From 8b3dc2d44b666e53f162e59dbe33f3449dbcac65 Mon Sep 17 00:00:00 2001 From: Michael Vines Date: Thu, 11 Jun 2020 13:13:54 -0700 Subject: [PATCH] Force CI_REPO_SLUG --- ci/upload-github-release-asset.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ci/upload-github-release-asset.sh b/ci/upload-github-release-asset.sh index ebc4c56c3..76210edf7 100755 --- a/ci/upload-github-release-asset.sh +++ b/ci/upload-github-release-asset.sh @@ -23,10 +23,14 @@ if [[ -z $CI_TAG ]]; then exit 1 fi -if [[ -z $CI_REPO_SLUG ]]; then - echo Error: CI_REPO_SLUG not defined - exit 1 -fi +# Force CI_REPO_SLUG since sometimes +# BUILDKITE_TRIGGERED_FROM_BUILD_PIPELINE_SLUG is not set correctly, causing the +# artifact upload to fail +CI_REPO_SLUG=solana-labs/solana +#if [[ -z $CI_REPO_SLUG ]]; then +# echo Error: CI_REPO_SLUG not defined +# exit 1 +#fi releaseId=$( \ curl -s "https://api.github.com/repos/$CI_REPO_SLUG/releases/tags/$CI_TAG" \