diff --git a/.github/workflows/chart-build-publish.yml b/.github/workflows/chart-build-publish.yml index ce11068..e23ae58 100644 --- a/.github/workflows/chart-build-publish.yml +++ b/.github/workflows/chart-build-publish.yml @@ -46,10 +46,9 @@ jobs: git config --local user.email "duyetbot@users.noreply.github.com" git config --local user.name "Auto Release Bot" - git checkout $TARGET_BRANCH git status git add $DIST_DIR git commit -m "[skip ci] Build and Publish Charts" - git push $REMOTE_REPO $CURRENT_BRANCH + git push $REMOTE_REPO $CURRENT_BRANCH || echo "Failed to push $CURRENT_BRANCH to $REMOTE_REPO" git subtree split --prefix $DIST_DIR -b $TARGET_BRANCH git push -f ${REMOTE_REPO} $TARGET_BRANCH:$TARGET_BRANCH