Skip to content

Commit fb244cd

Browse files
authored
Better release actions (#414)
1 parent dabd1f8 commit fb244cd

File tree

1 file changed

+52
-10
lines changed

1 file changed

+52
-10
lines changed

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

+52-10
Original file line numberDiff line numberDiff line change
@@ -9,64 +9,106 @@ 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:
1616
- name: "Checkout"
17-
uses: "actions/checkout@v3.5.2"
17+
uses: "actions/checkout@v3"
1818

1919
- name: "Release"
2020
uses: "laminas/[email protected]"
2121
with:
2222
command-name: "laminas:automatic-releases:release"
2323
env:
24+
"SHELL_VERBOSITY": "3"
2425
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
2526
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
2627
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
2728
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
28-
"LOG_LEVEL": "DEBUG"
29+
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"
2939

3040
- name: "Create Merge-Up Pull Request"
3141
uses: "laminas/[email protected]"
3242
with:
3343
command-name: "laminas:automatic-releases:create-merge-up-pull-request"
3444
env:
35-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
45+
"SHELL_VERBOSITY": "3"
46+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
3647
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
3748
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
3849
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
39-
"LOG_LEVEL": "DEBUG"
50+
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"
4060

4161
- name: "Create and/or Switch to new Release Branch"
4262
uses: "laminas/[email protected]"
4363
with:
4464
command-name: "laminas:automatic-releases:switch-default-branch-to-next-minor"
4565
env:
66+
"SHELL_VERBOSITY": "3"
4667
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
4768
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
4869
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
4970
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
50-
"LOG_LEVEL": "DEBUG"
71+
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+
with:
82+
fetch-depth: 0
5183

5284
- name: "Bump Changelog Version On Originating Release Branch"
5385
uses: "laminas/[email protected]"
5486
with:
5587
command-name: "laminas:automatic-releases:bump-changelog"
5688
env:
57-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
89+
"SHELL_VERBOSITY": "3"
90+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
5891
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
5992
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
6093
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
61-
"LOG_LEVEL": "DEBUG"
94+
95+
milestones:
96+
name: "Create new milestones"
97+
runs-on: ubuntu-latest
98+
if: ${{ always() }}
99+
needs: "bump"
100+
101+
steps:
102+
- name: "Checkout"
103+
uses: "actions/checkout@v3"
62104

63105
- name: "Create new milestones"
64106
uses: "laminas/[email protected]"
65107
with:
66108
command-name: "laminas:automatic-releases:create-milestones"
67109
env:
68-
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
110+
"SHELL_VERBOSITY": "3"
111+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
69112
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
70113
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
71114
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
72-
"LOG_LEVEL": "DEBUG"

0 commit comments

Comments
 (0)