Skip to content

Commit 646581b

Browse files
committed
qa: update automatic-releases workflow
- Pick up milestone creation step Signed-off-by: Matthew Weier O'Phinney <matthew@weierophinney.net>
1 parent 7b3e6d3 commit 646581b

File tree

1 file changed

+16
-2
lines changed

1 file changed

+16
-2
lines changed

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

Lines changed: 16 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
1-
# https://help.github.com/en/categories/automating-your-workflow-with-github-actions
1+
# Alternate workflow example.
2+
# This one is identical to the one in release-on-milestone.yml, with one change:
3+
# the Release step uses the ORGANIZATION_ADMIN_TOKEN instead, to allow it to
4+
# trigger a release workflow event. This is useful if you have other actions
5+
# that intercept that event.
26

37
name: "Automatic Releases"
48

@@ -21,7 +25,7 @@ jobs:
2125
with:
2226
command-name: "laminas:automatic-releases:release"
2327
env:
24-
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
28+
"GITHUB_TOKEN": ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
2529
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
2630
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
2731
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
@@ -55,3 +59,13 @@ jobs:
5559
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
5660
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
5761
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}
62+
63+
- name: "Create new milestones"
64+
uses: "laminas/automatic-releases@v1"
65+
with:
66+
command-name: "laminas:automatic-releases:create-milestones"
67+
env:
68+
"GITHUB_TOKEN": ${{ secrets.GITHUB_TOKEN }}
69+
"SIGNING_SECRET_KEY": ${{ secrets.SIGNING_SECRET_KEY }}
70+
"GIT_AUTHOR_NAME": ${{ secrets.GIT_AUTHOR_NAME }}
71+
"GIT_AUTHOR_EMAIL": ${{ secrets.GIT_AUTHOR_EMAIL }}

0 commit comments

Comments
 (0)