Skip to content

Commit 3e9cd6b

Browse files
authored
Update create_release_tag.yml
1 parent 62eaacb commit 3e9cd6b

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/create_release_tag.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on: workflow_dispatch
44

55
permissions:
66
contents: write
7+
pull-requests: write
78

89
jobs:
910
create_release_tag:
@@ -25,13 +26,23 @@ jobs:
2526
2627
- uses: stefanzweifel/git-auto-commit-action@v5
2728
with:
28-
commit_message: "Prepare release: github-api-${{ steps.release.outputs.version }}"
29+
commit_message: "Prepare release (${{ github.actor }}): github-api-${{ steps.release.outputs.version }}"
2930
tagging_message: 'github-api-${{ steps.release.outputs.version }}'
30-
31+
branch: staging/main
32+
3133
- name: Increment Snapshot Version
3234
run: |
3335
mvn versions:set versions:commit -DnextSnapshot
3436
3537
- uses: stefanzweifel/git-auto-commit-action@v5
3638
with:
37-
commit_message: "Prepare for next development iteration"
39+
commit_message: "Prepare for next development iteration"
40+
branch: staging/main
41+
42+
- name: pull-request to main
43+
uses: repo-sync/pull-request@v2
44+
with:
45+
pr_title: "Prepare release (${{ github.actor }}): github-api-${{ steps.release.outputs.version }}"
46+
source_branch: "staging/main"
47+
destination_branch: "main"
48+
github_token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)