File tree Expand file tree Collapse file tree 1 file changed +0
-24
lines changed
Expand file tree Collapse file tree 1 file changed +0
-24
lines changed Original file line number Diff line number Diff line change 4040 run : |
4141 echo Add more actions to build,
4242 echo test, and deploy your project(s).
43-
44- - name : Get "ci/prow/e2e" details link
45- id : get-check
46- uses : actions/github-script@v6
47- with :
48- script : |
49- // Use the PR head commit SHA
50- const sha = context.payload.pull_request.head.sha;
51- // Fetch check runs for this commit, filtering by check name
52- const { data } = await github.checks.listForRef({
53- owner: context.repo.owner,
54- repo: context.repo.repo,
55- ref: sha,
56- check_name: 'ci/prow/e2e'
57- });
58-
59- if (data.total_count === 0) {
60- core.info('No check runs found with name "ci/prow/e2e"');
61- } else {
62- // Assume the first matching check run is the one we want
63- const checkRun = data.check_runs[0];
64- core.setOutput('details_link', checkRun.details_url);
65- core.info(`Found details URL: ${checkRun.details_url}`);
66- }
You can’t perform that action at this time.
0 commit comments