File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 4545 sudo journalctl --vacuum-time=1s
4646 echo "Remaining space:"
4747 df -h
48-
49- - name : Delete Old Artifacts
50- uses : actions/github-script@v6
51- id : artifact
52- with :
53- script : |
5448
55- if (context.repo.owner === 'rinriko') {
56- const res = await github.rest.actions.listArtifactsForRepo({
57- owner: context.repo.owner,
58- repo: context.repo.repo,
59- });
60-
61- for (const { id } of res.data.artifacts) {
62- await github.rest.actions.deleteArtifact({
63- owner: context.repo.owner,
64- repo: context.repo.repo,
65- artifact_id: id,
66- });
67- }
68-
69- console.log(`Deleted ${res.data.artifacts.length} artifacts.`);
70- } else {
71- console.log("Skipping artifact deletion: not in the main repo context.");
72- }
7349 - name : Delete All Artifacts
7450 uses : actions/github-script@v6
7551 with :
You can’t perform that action at this time.
0 commit comments