From d27657cdfea317e3b54b01b6363cc96ee5036b1f Mon Sep 17 00:00:00 2001 From: Tamal Saha Date: Wed, 8 Jul 2020 02:04:02 -0700 Subject: [PATCH] Publish to testing dir for alpha/beta releases (#78) /cherry-pick Signed-off-by: Tamal Saha --- .github/workflows/release.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b4c6e52b..20613afab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -42,4 +42,8 @@ jobs: CHART_REPOSITORY: ${{ secrets.CHART_REPOSITORY }} run: | cd $RUNNER_WORKSPACE/$(basename $CHART_REPOSITORY) + GIT_TAG=${GITHUB_REF#"refs/tags/"} + if [[ $GIT_TAG =~ "-alpha." ]] || [[ $GIT_TAG =~ "-beta." ]]; then + export REPO_DIR=testing + fi ./hack/scripts/open-pr.sh $GITHUB_WORKSPACE