@@ -145,6 +145,7 @@ jobs:
145
145
pull-requests : none
146
146
outputs :
147
147
deployment_result : ${{ steps.deployment.outputs.result }}
148
+ path_prefix : ${{ steps.generate-path-prefix.outputs.result }}
148
149
env :
149
150
GITHUB_PR_REF_NAME : ${{ github.event.pull_request.head.ref }}
150
151
MATCH : ${{ needs.match.outputs.content-source-match }}
@@ -203,6 +204,7 @@ jobs:
203
204
return deployment.data.id
204
205
205
206
- name : Generate env.PATH_PREFIX
207
+ id : generate-path-prefix
206
208
if : >
207
209
env.MATCH == 'true'
208
210
&& steps.deployment.outputs.result
@@ -212,16 +214,18 @@ jobs:
212
214
run : |
213
215
case "${GITHUB_EVENT_NAME}" in
214
216
"merge_group" | "pull_request" | "pull_request_target")
215
- echo "PATH_PREFIX= /${GITHUB_REPOSITORY}/pull/${PR_NUMBER}" >> $GITHUB_ENV
217
+ path_prefix=" /${GITHUB_REPOSITORY}/pull/${PR_NUMBER}"
216
218
;;
217
219
"push" | "workflow_dispatch")
218
- echo "PATH_PREFIX= /${GITHUB_REPOSITORY}/tree/${GITHUB_REF_NAME}" >> $GITHUB_ENV
220
+ path_prefix=" /${GITHUB_REPOSITORY}/tree/${GITHUB_REF_NAME}"
219
221
;;
220
222
*)
221
223
echo "Unsupported event: '${GITHUB_EVENT_NAME}'";
222
224
exit 1;
223
225
;;
224
226
esac
227
+ echo "PATH_PREFIX=${path_prefix}" >> $GITHUB_ENV
228
+ echo "result=${path_prefix}" >> $GITHUB_OUTPUT
225
229
226
230
- name : Bootstrap Action Workspace
227
231
if : >
@@ -365,6 +369,7 @@ jobs:
365
369
uses : actions/github-script@v7
366
370
env :
367
371
ALL_CHANGED_FILES : ${{ needs.check.outputs.all_changed_files }}
372
+ PATH_PREFIX : ${{ needs.build.outputs.path_prefix }}
368
373
with :
369
374
script : |
370
375
const title = '## 🔍 Preview links for changed docs'
0 commit comments