Skip to content

Commit 11b4844

Browse files
committed
update yml
1 parent 09f9ad8 commit 11b4844

1 file changed

Lines changed: 0 additions & 24 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -45,31 +45,7 @@ jobs:
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:

0 commit comments

Comments
 (0)