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