Skip to content

Commit 8b4e954

Browse files
committed
ci: build plugins
- implement `summarize` Signed-off-by: Yi Huang <yi@secondstate.io>
1 parent 17db6ab commit 8b4e954

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+
core.summary("# List artifacts");
45+
const opts = {
46+
owner: context.repo.owner,
47+
repo: context.repo.repo,
48+
run_id: context.runId,
49+
};
50+
octokit
51+
.paginate(octokit.rest.actions.listWorkflowRunArtifacts, opts)
52+
.then((artifacts) => {
53+
core.summary(`* number of artifacts: ${artifacts.length}`);
54+
console.log(artifacts[0]);
55+
});

0 commit comments

Comments
 (0)