Skip to content

Commit 9c30ed9

Browse files
committed
ci: build plugins
- implement `summarize` Signed-off-by: Yi Huang <[email protected]>
1 parent 17db6ab commit 9c30ed9

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/build.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,26 @@ jobs:
3030
plugins: ${{ toJSON(matrix.plugins) }}
3131
version: ${{ needs.get-versions.outputs.version }}
3232
secrets: inherit
33+
34+
summarize:
35+
needs:
36+
- get-versions
37+
- parse-plugins
38+
- linux
39+
runs-on: ubuntu-latest
40+
steps:
41+
- uses: actions/github-script@v7
42+
with:
43+
script: |
44+
const opts = {
45+
owner: context.repo.owner,
46+
repo: context.repo.repo,
47+
run_id: context.runId,
48+
};
49+
octokit
50+
.paginate(octokit.rest.actions.listWorkflowRunArtifacts, opts)
51+
.then((artifacts) => {
52+
for (const artifact of artifacts) {
53+
console.log(artifact);
54+
}
55+
});

0 commit comments

Comments
 (0)