Skip to content

Commit

Permalink
Update .push-helm-chart.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
barrfalk committed Jan 9, 2024
1 parent 84132b6 commit 55e0f22
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/.push-helm-chart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,11 +89,17 @@ jobs:
ssh-key: ${{ secrets.MANIFEST_REPO_DEPLOY_KEY }}
path: 'target-repo'

- name: Create new branch in target repository
- name: Create new branch or checkout existing branch in target repository
run: |
cd target-repo
git checkout -b update-helm-chart-${{ inputs.tag }}
BRANCH_NAME="update-helm-chart-${{ env.package_tag }}"
if git rev-parse --verify origin/$BRANCH_NAME; then
git checkout $BRANCH_NAME
git pull origin $BRANCH_NAME
else
git checkout -b $BRANCH_NAME
fi
- name: Copy folder from source to target
run: |
if [ -d "source-repo/charts" ]; then
Expand Down

0 comments on commit 55e0f22

Please sign in to comment.