@@ -71,10 +71,18 @@ jobs:
7171
7272 steps :
7373 - uses : actions/checkout@v6
74+ - name : Checkout dev-tools workflow action source
75+ uses : actions/checkout@v6
76+ with :
77+ repository : php-fast-forward/dev-tools
78+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
79+ path : .dev-tools-actions
80+ sparse-checkout : |
81+ .github/actions
7482
7583 - name : Resolve workflow PHP version
7684 id : resolve
77- uses : ./.github/actions/php/resolve-version
85+ uses : ./.dev-tools-actions/. github/actions/php/resolve-version
7886
7987 validate_pull_request :
8088 name : Validate PR Changelog
8997 - uses : actions/checkout@v6
9098 with :
9199 fetch-depth : 0
100+ - name : Checkout dev-tools workflow action source
101+ uses : actions/checkout@v6
102+ with :
103+ repository : php-fast-forward/dev-tools
104+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
105+ path : .dev-tools-actions
106+ sparse-checkout : |
107+ .github/actions
92108
93109 - name : Setup PHP and install dependencies
94- uses : ./.github/actions/php/setup-composer
110+ uses : ./.dev-tools-actions/. github/actions/php/setup-composer
95111 with :
96112 php-version : ${{ needs.resolve_php.outputs.php-version }}
97113 root-version : ${{ env.CHANGELOG_ROOT_VERSION }}
@@ -107,7 +123,7 @@ jobs:
107123 BASE_REF : ${{ github.event.pull_request.base.ref }}
108124 run : composer dev-tools changelog:check -- --file="${CHANGELOG_FILE}" --against="origin/${BASE_REF}"
109125
110- - uses : ./.github/actions/summary/write
126+ - uses : ./.dev-tools-actions/. github/actions/summary/write
111127 with :
112128 markdown : |
113129 ## Changelog Validation Summary
@@ -132,17 +148,25 @@ jobs:
132148 token : ${{ github.token }}
133149 ref : ${{ github.event.repository.default_branch }}
134150 fetch-depth : 0
151+ - name : Checkout dev-tools workflow action source
152+ uses : actions/checkout@v6
153+ with :
154+ repository : php-fast-forward/dev-tools
155+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
156+ path : .dev-tools-actions
157+ sparse-checkout : |
158+ .github/actions
135159
136160 - name : Setup PHP and install dependencies
137- uses : ./.github/actions/php/setup-composer
161+ uses : ./.dev-tools-actions/. github/actions/php/setup-composer
138162 with :
139163 php-version : ${{ needs.resolve_php.outputs.php-version }}
140164 root-version : ${{ env.CHANGELOG_ROOT_VERSION }}
141165 install-options : --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts
142166
143167 - name : Resolve release version
144168 id : version
145- uses : ./.github/actions/changelog/resolve-version
169+ uses : ./.dev-tools-actions/. github/actions/changelog/resolve-version
146170 with :
147171 changelog-file : ${{ env.CHANGELOG_FILE }}
148172 version : ${{ inputs.version || '' }}
@@ -155,7 +179,7 @@ jobs:
155179 composer dev-tools changelog:promote -- "${RELEASE_VERSION}" --file="${CHANGELOG_FILE}" --date="${release_date}"
156180
157181 - name : Render release notes preview
158- uses : ./.github/actions/changelog/render-release-notes
182+ uses : ./.dev-tools-actions/. github/actions/changelog/render-release-notes
159183 with :
160184 changelog-file : ${{ env.CHANGELOG_FILE }}
161185 version : ${{ steps.version.outputs.value }}
@@ -183,14 +207,22 @@ jobs:
183207 - source: `${{ steps.version.outputs.source }}`
184208
185209 - uses : actions/checkout@v6
210+ - name : Checkout dev-tools workflow action source
211+ uses : actions/checkout@v6
212+ with :
213+ repository : php-fast-forward/dev-tools
214+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
215+ path : .dev-tools-actions
216+ sparse-checkout : |
217+ .github/actions
186218
187- - uses : ./.github/actions/project-board/transition-status
219+ - uses : ./.dev-tools-actions/. github/actions/project-board/transition-status
188220 with :
189221 project : ${{ inputs.project || vars.PROJECT || '' }}
190222 from-status : Merged
191223 to-status : Release Prepared
192224
193- - uses : ./.github/actions/summary/write
225+ - uses : ./.dev-tools-actions/. github/actions/summary/write
194226 with :
195227 markdown : |
196228 ## Release Preparation Summary
@@ -217,44 +249,60 @@ jobs:
217249 token : ${{ github.token }}
218250 ref : ${{ github.event.pull_request.base.ref }}
219251 fetch-depth : 0
252+ - name : Checkout dev-tools workflow action source
253+ uses : actions/checkout@v6
254+ with :
255+ repository : php-fast-forward/dev-tools
256+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
257+ path : .dev-tools-actions
258+ sparse-checkout : |
259+ .github/actions
220260
221261 - name : Setup PHP and install dependencies
222- uses : ./.github/actions/php/setup-composer
262+ uses : ./.dev-tools-actions/. github/actions/php/setup-composer
223263 with :
224264 php-version : ${{ needs.resolve_php.outputs.php-version }}
225265 root-version : ${{ env.CHANGELOG_ROOT_VERSION }}
226266 install-options : --prefer-dist --no-progress --no-interaction --no-plugins --no-scripts
227267
228268 - name : Resolve merged release version
229269 id : version
230- uses : ./.github/actions/changelog/resolve-merged-version
270+ uses : ./.dev-tools-actions/. github/actions/changelog/resolve-merged-version
231271 with :
232272 head-ref : ${{ github.event.pull_request.head.ref }}
233273 release-branch-prefix : ${{ env.RELEASE_BRANCH_PREFIX }}
234274
235275 - name : Render release notes
236- uses : ./.github/actions/changelog/render-release-notes
276+ uses : ./.dev-tools-actions/. github/actions/changelog/render-release-notes
237277 with :
238278 changelog-file : ${{ env.CHANGELOG_FILE }}
239279 version : ${{ steps.version.outputs.value }}
240280
241281 - name : Publish GitHub release
242282 id : publish_release
243- uses : ./.github/actions/changelog/publish-release
283+ uses : ./.dev-tools-actions/. github/actions/changelog/publish-release
244284 with :
245285 version : ${{ steps.version.outputs.value }}
246286 target : ${{ github.event.pull_request.merge_commit_sha || github.sha }}
247287
248288 - uses : actions/checkout@v6
289+ - name : Checkout dev-tools workflow action source
290+ uses : actions/checkout@v6
291+ with :
292+ repository : php-fast-forward/dev-tools
293+ ref : ${{ github.repository == 'php-fast-forward/dev-tools' && (github.event_name == 'pull_request_target' && github.event.pull_request.base.sha || github.sha) || 'main' }}
294+ path : .dev-tools-actions
295+ sparse-checkout : |
296+ .github/actions
249297
250- - uses : ./.github/actions/project-board/transition-status
298+ - uses : ./.dev-tools-actions/. github/actions/project-board/transition-status
251299 with :
252300 project : ${{ inputs.project || vars.PROJECT || '' }}
253301 from-status : Release Prepared
254302 to-status : Released
255303 include-current-pull-request : ' true'
256304
257- - uses : ./.github/actions/summary/write
305+ - uses : ./.dev-tools-actions/. github/actions/summary/write
258306 with :
259307 markdown : |
260308 ## Release Publication Summary
0 commit comments