From 727fcd4687c01fcf47969b77fad10b74bc218dc2 Mon Sep 17 00:00:00 2001 From: lrangine <19699092+lokeshrangineni@users.noreply.github.com> Date: Mon, 3 Feb 2025 15:56:53 -0500 Subject: [PATCH 1/3] Creating/updating the stable branch after the release. Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com> --- .github/workflows/release.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 5e95950cbeb..9abc6f1642e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -156,7 +156,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 with: - persist-credentials: false + persist-credentials: true - name: Setup Node.js uses: actions/setup-node@v3 with: @@ -179,3 +179,11 @@ jobs: if: github.event.inputs.dry_run == 'false' run: | npx -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/exec -p semantic-release semantic-release + + - name: Create or update stable branch after release. + if: github.event.inputs.dry_run == 'false' + run: | + git fetch origin + git checkout -B stable + git reset --hard origin/${GITHUB_REF##*/} + git push -f origin stable \ No newline at end of file From 6794ef09b2007de6b5f794068ca4579ea114323f Mon Sep 17 00:00:00 2001 From: lokeshrangineni <19699092+lokeshrangineni@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:06:21 -0500 Subject: [PATCH 2/3] Update .github/workflows/release.yml Co-authored-by: Francisco Arceo Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com> --- .github/workflows/release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9abc6f1642e..0eca531b731 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -184,6 +184,7 @@ jobs: if: github.event.inputs.dry_run == 'false' run: | git fetch origin + # note that this checkout creates a branch called `stable` if it does not exist git checkout -B stable git reset --hard origin/${GITHUB_REF##*/} git push -f origin stable \ No newline at end of file From fa064b5884595cbcc10b8153a0f585de2068d63b Mon Sep 17 00:00:00 2001 From: lokeshrangineni <19699092+lokeshrangineni@users.noreply.github.com> Date: Tue, 4 Feb 2025 10:06:32 -0500 Subject: [PATCH 3/3] Update .github/workflows/release.yml Co-authored-by: Francisco Arceo Signed-off-by: lrangine <19699092+lokeshrangineni@users.noreply.github.com> --- .github/workflows/release.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0eca531b731..bfb5e382f7b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -180,7 +180,7 @@ jobs: run: | npx -p @semantic-release/changelog -p @semantic-release/git -p @semantic-release/exec -p semantic-release semantic-release - - name: Create or update stable branch after release. + - name: Updating `stable` branch after release. if: github.event.inputs.dry_run == 'false' run: | git fetch origin