Skip to content

Commit 82cc31c

Browse files
authored
Meta: Debug publish-pr.yml
1 parent 646fd34 commit 82cc31c

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/render-pr.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,24 @@ jobs:
1616
- name: Save PR number
1717
run: echo ${{ github.event.number }} > build/pr-number.txt
1818
- uses: actions/upload-artifact@v4
19+
id: upload
1920
if: ${{ !github.event.repository.fork }}
2021
with:
2122
name: result
2223
path: build/
24+
- name: Echo artifact ID
25+
run: echo 'Artifact ID is ${{ steps.upload.outputs.artifact-id }}'
26+
- name: Verify artifact discoverability
27+
uses: actions/github-script@v7
28+
with:
29+
script: |
30+
const { owner, repo } = context.repo;
31+
const run_id = ${{ github.run_id }};
32+
console.log(
33+
'all artifacts for run id ${{ github.run_id }}',
34+
await github.rest.actions.listWorkflowRunArtifacts({ owner, repo, run_id }),
35+
);
36+
console.log(
37+
'"result" artifacts for run id ${{ github.run_id }}',
38+
await github.rest.actions.listWorkflowRunArtifacts({ owner, repo, run_id, name: "result" }),
39+
);

0 commit comments

Comments
 (0)