stupid action
This commit is contained in:
parent
358ccb70a4
commit
a490d7944f
1 changed files with 0 additions and 25 deletions
25
.github/workflows/delete-artifacts.yml
vendored
25
.github/workflows/delete-artifacts.yml
vendored
|
|
@ -1,25 +0,0 @@
|
|||
name: Delete Artifacts
|
||||
on:
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
delete-artifacts:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- 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,
|
||||
})
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue