92
92
required : false
93
93
default : ' ubuntu-latest'
94
94
95
+ git_actor_name :
96
+ description : The name of the git actor to use for the bundled JS output.
97
+ type : string
98
+ required : false
99
+ git_actor_email :
100
+ description : The email of the git actor to use for the bundled JS output.
101
+ type : string
102
+ required : false
103
+
95
104
secrets :
96
105
bundlewatch_github_token :
97
106
description : The GitHub token to use for Bundlewatch.
98
107
required : false
99
108
composer_auth :
100
109
description : The Composer auth tokens to use for private packages.
101
110
required : false
111
+ git_actor_token :
112
+ description : The personal access token from the custom git actor.
113
+ required : false
102
114
103
115
env :
104
116
COMPOSER_ROOT_VERSION : dev-main
@@ -111,13 +123,18 @@ jobs:
111
123
build :
112
124
name : Checks & Build
113
125
runs-on : ${{ inputs.runner_type }}
126
+ env :
127
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
128
+ GIT_ACTOR_TOKEN : ${{ secrets.git_actor_token }}
114
129
115
130
if : >-
116
131
((github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository) || github.event_name != 'pull_request')
117
132
118
133
steps :
119
134
- name : Check out code
120
135
uses : actions/checkout@v4
136
+ with :
137
+ token : ${{ secrets.git_actor_token != '' && secrets.git_actor_token || secrets.GITHUB_TOKEN }}
121
138
122
139
- name : Set up Node
123
140
uses : actions/setup-node@v4
@@ -143,9 +160,8 @@ jobs:
143
160
working-directory : ${{ inputs.frontend_directory }}
144
161
145
162
- name : JS Checks & Production Build
146
- uses : flarum/action-build@v4
163
+ uses : flarum/action-build@v4.1
147
164
with :
148
- github_token : ${{ secrets.GITHUB_TOKEN }}
149
165
build_script : ${{ inputs.build_script }}
150
166
build_typings_script : ${{ inputs.build_typings_script }}
151
167
format_script : ${{ inputs.enable_prettier == true && inputs.format_script || '' }}
@@ -155,6 +171,8 @@ jobs:
155
171
package_manager : ${{ inputs.js_package_manager }}
156
172
js_path : ${{ inputs.frontend_directory }}
157
173
do_not_commit : ${{ github.ref != format('refs/heads/{0}', inputs.main_git_branch) || github.event_name != 'push' }}
174
+ git_actor_name : ${{ inputs.git_actor_name || '' }}
175
+ git_actor_email : ${{ inputs.git_actor_email || '' }}
158
176
159
177
- name : Check bundle size change
160
178
if : ${{ inputs.enable_bundlewatch }}
0 commit comments