From 8488d6bec29a143eb948a055c4d5a97adb1c2ae0 Mon Sep 17 00:00:00 2001 From: Rakshith R Date: Mon, 22 Nov 2021 11:36:15 +0530 Subject: [PATCH] ci: fix helm chart push for release branches Currently BRANCH_NAME for release branches is not set causing the source in helm chart to be set as sources: - https://github.com/ceph/ceph-csi/tree//charts/ceph-csi-cephfs Current change fixes it. Signed-off-by: Rakshith R --- .github/workflows/publish-artifacts.yaml | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/.github/workflows/publish-artifacts.yaml b/.github/workflows/publish-artifacts.yaml index c6791ef57..9a062516c 100644 --- a/.github/workflows/publish-artifacts.yaml +++ b/.github/workflows/publish-artifacts.yaml @@ -24,12 +24,9 @@ jobs: username: ${{ secrets.QUAY_IO_USERNAME }} password: ${{ secrets.QUAY_IO_PASSWORD }} - - name: Set build environment based on Git branch name - if: github.ref == 'refs/heads/devel' - run: echo "BRANCH_NAME=devel" >> $GITHUB_ENV - - name: Set build environment variables run: | + echo "BRANCH_NAME=${GITHUB_REF##*/}" >> $GITHUB_ENV echo "GITHUB_USER=${{ secrets.CEPH_CSI_BOT_NAME }}" >> $GITHUB_ENV echo "GITHUB_EMAIL=${{ secrets.CEPH_CSI_BOT_EMAIL }}" >> $GITHUB_ENV echo "GITHUB_TOKEN=${{ secrets.CEPH_CSI_BOT_TOKEN }}" >> $GITHUB_ENV