File tree 3 files changed +37
-0
lines changed
3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change 39
39
previewctl install-context --branch " ${PREVIEW_NAME} " --log-level debug --timeout 10m --gcp-service-account " ${PREVIEW_ENV_DEV_SA_KEY_PATH} "
40
40
leeway run dev/preview:deploy-gitpod
41
41
previewctl report >> " ${GITHUB_STEP_SUMMARY} "
42
+
43
+ EOF=$( dd if=/dev/urandom bs=15 count=1 status=none | base64)
44
+ report=$( previewctl report | base64)
45
+ {
46
+ echo " report<<$EOF "
47
+ echo " $report "
48
+ echo " $EOF "
49
+ } >> " $GITHUB_OUTPUT "
Original file line number Diff line number Diff line change 1
1
## Description
2
2
<!-- Describe your changes in detail -->
3
3
4
+ #### Preview status
5
+
6
+ gitpod: summary
7
+
4
8
## Related Issue(s)
5
9
<!-- List the issue(s) this PR solves -->
6
10
Fixes #
Original file line number Diff line number Diff line change 38
38
with_integration_tests : ${{ steps.output.outputs.with_integration_tests }}
39
39
latest_ide_version : ${{ contains( steps.pr-details.outputs.pr_body, '[x] latest-ide-version=true') }}
40
40
leeway_cache_bucket : ${{ steps.output.outputs.leeway_cache_bucket }}
41
+ pr_number : ${{ steps.pr-details.outputs.number }}
42
+ pr_body : ${{ steps.pr-details.outputs.pr_body }}
41
43
steps :
42
44
- name : " Determine Branch"
43
45
id : branches
@@ -344,6 +346,29 @@ jobs:
344
346
with_dedicated_emulation : ${{needs.configuration.outputs.with_dedicated_emulation}}
345
347
analytics : ${{needs.configuration.outputs.analytics}}
346
348
workspace_feature_flags : ${{needs.configuration.outputs.workspace_feature_flags}}
349
+ - uses : actions/github-script@v6
350
+ if : needs.configuration.outputs.pr_number != '' && contains(needs.configuration.outputs.pr_body, 'gitpod:summary')
351
+ with :
352
+ script : |
353
+ const prNumber = ${{ needs.configuration.outputs.pr_number }};
354
+
355
+ const summaryEncoded = `${{ steps.deploy-gitpod.outputs.report }}`;
356
+ const summary = Buffer.from(summaryEncoded, 'base64').toString('utf8');
357
+
358
+ const { data: pr } = await github.rest.pulls.get({
359
+ ...context.repo,
360
+ pull_number: prNumber,
361
+ });
362
+
363
+ const prBody = pr.body;
364
+
365
+ const newBody = prBody.replace('gitpod:summary', summary);
366
+
367
+ await github.rest.pulls.update({
368
+ ...context.repo,
369
+ pull_number: prNumber,
370
+ body: newBody,
371
+ });
347
372
348
373
monitoring :
349
374
name : " Install Monitoring Satellite"
You can’t perform that action at this time.
0 commit comments