{"id":14985946,"url":"https://github.com/dext7r/deleteworkflowrunlogs","last_synced_at":"2026-01-07T20:06:57.007Z","repository":{"id":237637169,"uuid":"794936905","full_name":"dext7r/deleteWorkflowRunLogs","owner":"dext7r","description":"A GitHub Action to delete logs of a workflow run | 用于删除工作流运行日志的 GitHub action","archived":false,"fork":false,"pushed_at":"2025-03-07T16:07:47.000Z","size":346,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-03-29T05:24:25.339Z","etag":null,"topics":["action","github","github-actions","workflow"],"latest_commit_sha":null,"homepage":"https://github.com/dext7r/deleteWorkflowRunLogs","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dext7r.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-05-02T09:01:15.000Z","updated_at":"2024-06-09T15:52:36.000Z","dependencies_parsed_at":null,"dependency_job_id":"29cb9f62-16a4-47e8-9c63-cb2c6e02304f","html_url":"https://github.com/dext7r/deleteWorkflowRunLogs","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"e60363bdeb61a09d5d785330247bce05cfdef480"},"previous_names":["dext7r/deleteworkflowrunlogs"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FdeleteWorkflowRunLogs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FdeleteWorkflowRunLogs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FdeleteWorkflowRunLogs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dext7r%2FdeleteWorkflowRunLogs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dext7r","download_url":"https://codeload.github.com/dext7r/deleteWorkflowRunLogs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246142976,"owners_count":20730187,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["action","github","github-actions","workflow"],"created_at":"2024-09-24T14:11:59.530Z","updated_at":"2026-01-07T20:06:51.988Z","avatar_url":"https://github.com/dext7r.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"center\"\u003edeleteWorkflowRunLogs\u003c/h1\u003e\n\u003cp\u003e\n  \u003ca href=\"https://www.npmjs.com/package/@dext7r/delete-workflow-run-logs\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Version\" src=\"https://img.shields.io/badge/version-1.0.1-blue.svg?cacheSeconds=2592000\"\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/deleteWorkflowRunLogs/actions/workflows/delete-workflow-run-logs.yml\" target=\"_blank\"\u003e\n    \u003cimg alt=\"GitHub Workflow Status\" src=\"https://github.com/dext7r/deleteWorkflowRunLogs/actions/workflows/delete-workflow-run-logs.yml/badge.svg\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/badge/node-%3E%3D12-blue.svg\" /\u003e\n  \u003ca href=\"https://github.com/dext7r/deleteWorkflowRunLogs#readme\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Documentation\" src=\"https://img.shields.io/badge/documentation-yes-brightgreen.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/deleteWorkflowRunLogs/graphs/commit-activity\" target=\"_blank\"\u003e\n    \u003cimg alt=\"Maintenance\" src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" /\u003e\n  \u003c/a\u003e\n  \u003ca href=\"https://github.com/dext7r/deleteWorkflowRunLogs/blob/master/LICENSE\" target=\"_blank\"\u003e\n    \u003cimg alt=\"License: MIT\" src=\"https://img.shields.io/badge/License-MIT-yellow.svg\" /\u003e\n  \u003c/a\u003e\n\u003c/p\u003e\n\n# deleteWorkflowRunLogs\n\ndeleteWorkflowRunLogs 是基于[@octokit/rest](https://github.com/octokit/rest.js ) 封装的github action版本。也可使用 [@dext7r/delete-workflow-run-logs](https://www.npmjs.com/@dext7r/delete-workflow-run-logs),在node环境下使用\n\n## action\n\n### 新建一个workflow文件\n  ```yaml .github/workflows/delete-workflow-run-logs.yml\n  name: Push Notifications\n\non:\n  push:\n    branches:\n      - main\n\njobs:\n  delete-workflow-run-logs:\n    runs-on: ubuntu-latest\n\n    steps:\n    - name: Run Push Notifications action\n      uses: dext7r/delete-workflow-run-logs@main\n      with:\n        token: ${{ secrets.GITHUB_TOKEN }}\n        per_page: 100\n        expire_time: 7d\n        status: completed\n        repo: ${{ github.repository.repo }}\n        owner: ${{ github.repository.owner }}\n```\n\n## 参数\n\n| 变量名        | 描述                 | 可选值  | 默认值 | 必填  |\n|---------------|----------------------|---------|--------|--------|\n| token         | GitHub token         |         |        | 是     |\n| per_page      | 每页展示的数量         |         | 100    | 否     |\n| expire_time   | 过期时间              | \u003ctime\u003ed/\u003ctime\u003eh/m/y | 7d   | 否     |\n| status        | 工作流运行状态          | completed/cancelled/skipped | completed | 否  |\n| repo          | 仓库名称              |         |        | 是     |\n| owner         | 仓库所有者             |         |        | 是     |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fdeleteworkflowrunlogs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdext7r%2Fdeleteworkflowrunlogs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdext7r%2Fdeleteworkflowrunlogs/lists"}