From ba0833f9f2ef754b241fb141b2d2f32079d12f1d Mon Sep 17 00:00:00 2001 From: Jens Schulze Date: Tue, 30 Jan 2024 22:08:39 +0100 Subject: [PATCH] create PR for changelog changes --- .github/workflows/create-pr.yml | 11 +++++++++++ .github/workflows/release.yml | 7 +++++++ .kodiak.toml | 4 +++- 3 files changed, 21 insertions(+), 1 deletion(-) diff --git a/.github/workflows/create-pr.yml b/.github/workflows/create-pr.yml index 842db8ef352..f62d11345b0 100644 --- a/.github/workflows/create-pr.yml +++ b/.github/workflows/create-pr.yml @@ -2,6 +2,7 @@ on: push: branches: - 'gen-sdk-updates' + - 'after-release' name: Create Changes PR @@ -38,6 +39,7 @@ jobs: - uses: gradle/wrapper-validation-action@342dbebe7272035434f9baccc29a816ec6dd2c7b - uses: jenschude/auto-create-pr-action@a5369414c74963e6ec065dab49066d3711b8c1db + if: github.ref_name == "gen-sdk-updates" with: request_title: "Update generated SDKs" github_token: ${{ steps.generate_github_token.outputs.token }} @@ -50,3 +52,12 @@ jobs: ### Fixes ### Breaking changes + + - uses: jenschude/auto-create-pr-action@a5369414c74963e6ec065dab49066d3711b8c1db + if: github.ref_name == "after-release" + with: + request_title: "Update changelog" + github_token: ${{ steps.generate_github_token.outputs.token }} + label: automerge + request_body: | + Changelog updates diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 07cafb20b4e..7928f928737 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -78,6 +78,13 @@ jobs: - run: ./gradlew -Pversion=${{ github.ref_name }} writeVersionToExamples writeVersionToReadme setVersion nextMinorVersion snapshotVersion + - name: "Switch SDK to after release branch" + run: | + git fetch --depth=1 origin after-release || true + git checkout -B after-release origin/after-release || true + git checkout -B after-release + git log -1 + - name: "update changelog" run: | gh api /repos/commercetools/commercetools-sdk-java-v2/releases --paginate > releases.json diff --git a/.kodiak.toml b/.kodiak.toml index b3621862398..e8005e92989 100644 --- a/.kodiak.toml +++ b/.kodiak.toml @@ -1,2 +1,4 @@ version = 1 -merge.show_missing_automerge_label_message = false + +[merge] +show_missing_automerge_label_message = false