Skip to content

Commit ab9c9c7

Browse files
authored
Merge pull request #453 from web-token/3.2.x-merge-up-into-4.0.x_4AHcy0yE
Merge release 3.2.4 into 4.0.x
2 parents 0e9ccfe + ba266f9 commit ab9c9c7

File tree

2 files changed

+46
-8
lines changed

2 files changed

+46
-8
lines changed

.github/workflows/gitsplit.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,11 @@
11
name: gitsplit
22
on:
33
push:
4-
branches:
5-
- "*.x"
64
tags:
75
- '*'
86

97
env:
10-
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }}
8+
GITHUB_TOKEN: ${{ secrets.GITSPLIT_TOKEN }}
119

1210
jobs:
1311
packages_split:
@@ -116,8 +114,8 @@ jobs:
116114
#repository_host: git.private.com:1234
117115

118116
# ↓ the user signed under the split commit
119-
user_name: "Florent Morselli"
120-
user_email: "florent.morselli@spomky-labs.com"
117+
user_name: ${{ secrets.GIT_AUTHOR_NAME }}
118+
user_email: ${{ secrets.GIT_AUTHOR_EMAIL }}
121119

122120
# with tag
123121
-
@@ -137,5 +135,5 @@ jobs:
137135
#repository_host: git.private.com:1234
138136

139137
# ↓ the user signed under the split commit
140-
user_name: "Florent Morselli"
141-
user_email: "florent.morselli@spomky-labs.com"
138+
user_name: ${{ secrets.GIT_AUTHOR_NAME }}
139+
user_email: ${{ secrets.GIT_AUTHOR_EMAIL }}

.github/workflows/release-on-milestone-closed.yml

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99

1010
jobs:
1111
release:
12-
name: "GIT tag, release & create merge-up PR"
12+
name: "Release"
1313
runs-on: ubuntu-latest
1414

1515
steps:
@@ -27,6 +27,16 @@ jobs:
2727
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
2828
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
2929

30+
merge-up:
31+
name: "Create Merge-Up Pull Request"
32+
runs-on: ubuntu-latest
33+
if: ${{ always() }}
34+
needs: "release"
35+
36+
steps:
37+
- name: "Checkout"
38+
uses: "actions/checkout@v3"
39+
3040
- name: "Create Merge-Up Pull Request"
3141
uses: "laminas/automatic-releases@1.24.0"
3242
with:
@@ -38,6 +48,16 @@ jobs:
3848
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
3949
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
4050

51+
switch:
52+
name: "Create and/or Switch to new Release Branch"
53+
runs-on: ubuntu-latest
54+
if: ${{ always() }}
55+
needs: "merge-up"
56+
57+
steps:
58+
- name: "Checkout"
59+
uses: "actions/checkout@v3"
60+
4161
- name: "Create and/or Switch to new Release Branch"
4262
uses: "laminas/automatic-releases@1.24.0"
4363
with:
@@ -49,6 +69,16 @@ jobs:
4969
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
5070
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
5171

72+
bump:
73+
name: "Bump Changelog Version On Originating Release Branch"
74+
runs-on: ubuntu-latest
75+
if: ${{ always() }}
76+
needs: "switch"
77+
78+
steps:
79+
- name: "Checkout"
80+
uses: "actions/checkout@v3"
81+
5282
- name: "Bump Changelog Version On Originating Release Branch"
5383
uses: "laminas/automatic-releases@1.24.0"
5484
with:
@@ -60,6 +90,16 @@ jobs:
6090
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
6191
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
6292

93+
milestones:
94+
name: "Create new milestones"
95+
runs-on: ubuntu-latest
96+
if: ${{ always() }}
97+
needs: "bump"
98+
99+
steps:
100+
- name: "Checkout"
101+
uses: "actions/checkout@v3"
102+
63103
- name: "Create new milestones"
64104
uses: "laminas/automatic-releases@1.24.0"
65105
with:

0 commit comments

Comments
 (0)