Skip to content

Commit

Permalink
create PR for changelog changes
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude committed Jan 30, 2024
1 parent 62e115d commit ba0833f
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .github/workflows/create-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ on:
push:
branches:
- 'gen-sdk-updates'
- 'after-release'

name: Create Changes PR

Expand Down Expand Up @@ -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 }}
Expand All @@ -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
7 changes: 7 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion .kodiak.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
version = 1
merge.show_missing_automerge_label_message = false

[merge]
show_missing_automerge_label_message = false

0 comments on commit ba0833f

Please sign in to comment.