From a490d7944fb2cd079de13d1c3269983d6e0ee84a Mon Sep 17 00:00:00 2001 From: rustdesk Date: Mon, 3 Jul 2023 14:43:03 +0800 Subject: [PATCH] stupid action --- .github/workflows/delete-artifacts.yml | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 .github/workflows/delete-artifacts.yml diff --git a/.github/workflows/delete-artifacts.yml b/.github/workflows/delete-artifacts.yml deleted file mode 100644 index ac1cd2360..000000000 --- a/.github/workflows/delete-artifacts.yml +++ /dev/null @@ -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, - }) - })