From 34a89c04b1a9599fb4929db328dc52636cce03ff Mon Sep 17 00:00:00 2001 From: Maxime Beauchemin Date: Mon, 25 Nov 2024 13:34:27 -0800 Subject: [PATCH] tweaks --- .github/workflows/superset-helm-release.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/superset-helm-release.yml b/.github/workflows/superset-helm-release.yml index 19e76614b5e..20a3d3fa1c2 100644 --- a/.github/workflows/superset-helm-release.yml +++ b/.github/workflows/superset-helm-release.yml @@ -25,7 +25,7 @@ jobs: - name: Checkout code uses: actions/checkout@v4 with: - ref: ${{ inputs.ref }} + ref: ${{ inputs.ref || github.ref_name }} persist-credentials: false submodules: recursive fetch-depth: 0 @@ -47,6 +47,15 @@ jobs: id: vars run: echo "branch_name=helm-publish-${GITHUB_SHA:0:7}" >> $GITHUB_ENV + - name: Push changes to new branch + run: | + # Cloning gh-pages into working branch + git checkout gh-pages + git checkout -b ${{ env.branch_name }} + + # Back to where we started + git checkout ${{ inputs.ref || github.ref_name }} + - name: Run chart-releaser uses: ./.github/actions/chart-releaser-action with: