From 8cb5d8ee941c3b722f9075a06a79683fb93e2806 Mon Sep 17 00:00:00 2001 From: Faye Date: Tue, 20 Jan 2026 14:56:40 +0100 Subject: [PATCH] Update branch reference for helm docs if branch not created --- .github/workflows/helm-chart.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/helm-chart.yml b/.github/workflows/helm-chart.yml index 935e1ae7b..d927bf2a9 100644 --- a/.github/workflows/helm-chart.yml +++ b/.github/workflows/helm-chart.yml @@ -79,7 +79,11 @@ jobs: gh api repos/${{ github.repository }}/git/refs \ -X POST \ -f ref='refs/heads/helm-docs-update' \ - -f sha="$MAIN_SHA" || echo "Branch may already exist" + -f sha="$MAIN_SHA" || \ + gh api repos/${{ github.repository }}/git/refs/heads/helm-docs-update \ + -X PATCH \ + -f sha="$MAIN_SHA" \ + -f force=true || echo "Branch may already exist" env: GH_TOKEN: ${{ steps.generate_token.outputs.token }}