File tree 3 files changed +31
-17
lines changed
3 files changed +31
-17
lines changed Original file line number Diff line number Diff line change @@ -290,21 +290,14 @@ jobs:
290
290
if : ${{ !cancelled() && hashFiles('build-scan.txt') != '' }}
291
291
run : cat build-scan.txt
292
292
293
- # - name: Get current job url
294
- # uses: Tiryoh/gha-jobid-action@be260d8673c9211a84cdcf37794ebd654ba81eef # v1.4.0
295
- # id: jobs
296
- # if: ${{ !cancelled() }}
297
- # with:
298
- # job_name: "common / test${{ matrix.test-partition }} (${{ matrix.test-java-version }}, ${{ matrix.vm }})"
299
- # per_page: 100 # input matrix size here if it is larger than 30
300
-
301
293
- name : Get current job url
302
294
id : jobs
303
295
if : ${{ !cancelled() }}
304
296
uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
305
297
env :
306
298
matrix : ${{ toJson(matrix) }}
307
299
with :
300
+ result-encoding : string
308
301
script : |
309
302
const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
310
303
owner: context.repo.owner,
@@ -321,7 +314,6 @@ jobs:
321
314
env :
322
315
FLAKY_TEST_REPORTER_ACCESS_KEY : ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
323
316
JOB_URL : ${{ steps.jobs.outputs.result }}
324
- # JOB_URL: ${{ steps.jobs.outputs.html_url }}
325
317
run : |
326
318
if [ -s build-scan.txt ]; then
327
319
export BUILD_SCAN_URL=$(cat build-scan.txt)
Original file line number Diff line number Diff line change @@ -88,18 +88,29 @@ jobs:
88
88
run : cat build-scan.txt
89
89
90
90
- name : Get current job url
91
- uses : Tiryoh/gha-jobid-action@be260d8673c9211a84cdcf37794ebd654ba81eef # v1.4.0
92
91
id : jobs
93
92
if : ${{ !cancelled() }}
93
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
94
+ env :
95
+ matrix : ${{ toJson(matrix) }}
94
96
with :
95
- job_name : " test-indy / testIndy${{ matrix.test-partition }}"
96
- per_page : 100 # input matrix size here if it is larger than 30
97
+ result-encoding : string
98
+ script : |
99
+ const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
100
+ owner: context.repo.owner,
101
+ repo: context.repo.repo,
102
+ run_id: context.runId,
103
+ per_page: 100
104
+ });
105
+ const matrix = JSON.parse(process.env.matrix);
106
+ const job_name = `test-indy / testIndy${ matrix['test-partition'] }`;
107
+ return workflow_run.jobs.find((job) => job.name === job_name).html_url;
97
108
98
109
- name : Flaky test report
99
110
if : ${{ !cancelled() }}
100
111
env :
101
112
FLAKY_TEST_REPORTER_ACCESS_KEY : ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
102
- JOB_URL : ${{ steps.jobs.outputs.html_url }}
113
+ JOB_URL : ${{ steps.jobs.outputs.result }}
103
114
run : |
104
115
if [ -s build-scan.txt ]; then
105
116
export BUILD_SCAN_URL=$(cat build-scan.txt)
Original file line number Diff line number Diff line change @@ -86,18 +86,29 @@ jobs:
86
86
run : cat build-scan.txt
87
87
88
88
- name : Get current job url
89
- uses : Tiryoh/gha-jobid-action@be260d8673c9211a84cdcf37794ebd654ba81eef # v1.4.0
90
89
id : jobs
91
90
if : ${{ !cancelled() }}
91
+ uses : actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7.0.1
92
+ env :
93
+ matrix : ${{ toJson(matrix) }}
92
94
with :
93
- job_name : " test-latest-deps / testLatestDeps${{ matrix.test-partition }}"
94
- per_page : 100 # input matrix size here if it is larger than 30
95
+ result-encoding : string
96
+ script : |
97
+ const { data: workflow_run } = await github.rest.actions.listJobsForWorkflowRun({
98
+ owner: context.repo.owner,
99
+ repo: context.repo.repo,
100
+ run_id: context.runId,
101
+ per_page: 100
102
+ });
103
+ const matrix = JSON.parse(process.env.matrix);
104
+ const job_name = `test-latest-deps / testLatestDeps${ matrix['test-partition'] }`;
105
+ return workflow_run.jobs.find((job) => job.name === job_name).html_url;
95
106
96
107
- name : Flaky test report
97
108
if : ${{ !cancelled() }}
98
109
env :
99
110
FLAKY_TEST_REPORTER_ACCESS_KEY : ${{ secrets.FLAKY_TEST_REPORTER_ACCESS_KEY }}
100
- JOB_URL : ${{ steps.jobs.outputs.html_url }}
111
+ JOB_URL : ${{ steps.jobs.outputs.result }}
101
112
run : |
102
113
if [ -s build-scan.txt ]; then
103
114
export BUILD_SCAN_URL=$(cat build-scan.txt)
You can’t perform that action at this time.
0 commit comments