more tests
This commit is contained in:
19
.github/workflows/main.yml
vendored
19
.github/workflows/main.yml
vendored
@@ -71,3 +71,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
rm -rf ./_sprites/sorted
|
rm -rf ./_sprites/sorted
|
||||||
rm -rf ./_sprites/sorted-merged
|
rm -rf ./_sprites/sorted-merged
|
||||||
|
|
||||||
|
- name: Delete Old Artifacts
|
||||||
|
uses: actions/github-script@v6
|
||||||
|
id: artifact
|
||||||
|
with:
|
||||||
|
script: |
|
||||||
|
const res = await github.rest.actions.listArtifactsForRepo({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
})
|
||||||
|
|
||||||
|
res.data.artifacts
|
||||||
|
.forEach(({ id }) => {
|
||||||
|
github.rest.actions.deleteArtifact({
|
||||||
|
owner: context.repo.owner,
|
||||||
|
repo: context.repo.repo,
|
||||||
|
artifact_id: id,
|
||||||
|
})
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user