mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2026-06-07 20:48:09 +08:00
25 lines
512 B
YAML
25 lines
512 B
YAML
name: Clear Releases
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
delete:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.x'
|
|
|
|
- name: Install PyGithub
|
|
run: pip install PyGithub
|
|
|
|
- name: Delete tags and releases
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
run: |
|
|
python .github/clear-github-releases.py |