From f5ab33de10a939cc723a7f0b1eccfbd4e1314411 Mon Sep 17 00:00:00 2001 From: lgtm <1gtm@users.noreply.github.com> Date: Wed, 8 Jul 2020 02:18:18 -0700 Subject: [PATCH] [cherry-pick] Publish to testing dir for alpha/beta releases (#78) (#79) /cherry-pick Signed-off-by: Tamal Saha Co-authored-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