Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@ jobs:
COMMIT_SHA: ${{ steps.verify-commit.outputs.commit-sha }}
shell: bash

- name: Create patch branch
if: ${{ !contains(inputs.target_version, '-rc') }}
run: |
MAJOR=$(echo "$TARGET_RELEASE" | cut -d. -f1)
MINOR=$(echo "$TARGET_RELEASE" | cut -d. -f2)
PATCH_BRANCH="amp-patch-${MAJOR}.${MINOR}.x"

if git ls-remote --exit-code --heads origin "$PATCH_BRANCH" >/dev/null; then
echo "⏭️ Patch branch $PATCH_BRANCH already exists, skipping creation"
else
git branch "$PATCH_BRANCH"
git push origin "$PATCH_BRANCH"
echo "✅ Created patch branch: $PATCH_BRANCH"
fi
env:
TARGET_RELEASE: ${{ inputs.target_version }}
shell: bash

- name: Update Helm chart versions
run: |
bash .github/scripts/update-helm-charts.sh \
Expand Down