File tree Expand file tree Collapse file tree 2 files changed +21
-1
lines changed
examples/.github/workflows Expand file tree Collapse file tree 2 files changed +21
-1
lines changed Original file line number Diff line number Diff line change @@ -113,3 +113,23 @@ That's done by merging the destination into the merge-up branch and resolving th
113
113
1 . Push (` git push ` )
114
114
115
115
If needed you can create a merge-up branch manually: ` git checkout 1.0.x && git checkout -b 1.0.x-merge-up-into-1.1.x `
116
+
117
+ ## Triggering release workflow events
118
+
119
+ Because the tokens generated by GitHub Actions are considered OAuth tokens,
120
+ they are incapable of triggering further workflow events ([ see this document for
121
+ an explanation] ( https://docs.github.com/en/actions/reference/events-that-trigger-workflows#triggering-new-workflows-using-a-personal-access-token ) ).
122
+
123
+ As such, if you want to trigger a release event when automatic-releases runs,
124
+ you will need to modify your ` .github/workflows/release-on-milestone-closed.yml `
125
+ file to assign the ` ORGANIZATION_ADMIN_TOKEN ` as the value of the
126
+ ` GITHUB_TOKEN ` environment variable for the ` Release ` step:
127
+
128
+ ``` yaml
129
+ - name : " Release"
130
+ uses : " ./"
131
+ with :
132
+ command-name : " laminas:automatic-releases:release"
133
+ env :
134
+ " GITHUB_TOKEN " : ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
135
+ ` ` `
Original file line number Diff line number Diff line change 51
51
with :
52
52
command-name : " laminas:automatic-releases:bump-changelog"
53
53
env :
54
- " GITHUB_TOKEN " : ${{ secrets.ORGANIZATION_ADMIN_TOKEN }}
54
+ " GITHUB_TOKEN " : ${{ secrets.GITHUB_TOKEN }}
55
55
" SIGNING_SECRET_KEY " : ${{ secrets.SIGNING_SECRET_KEY }}
56
56
" GIT_AUTHOR_NAME " : ${{ secrets.GIT_AUTHOR_NAME }}
57
57
" GIT_AUTHOR_EMAIL " : ${{ secrets.GIT_AUTHOR_EMAIL }}
You can’t perform that action at this time.
0 commit comments