Skip to content

Commit

Permalink
ci: clear workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
h7ml committed Apr 13, 2024
1 parent ed2b874 commit fd6b89b
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/clear.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: claer
on:
schedule:
- cron: '30 06 * * *'
push:
branches:
- master
workflow_dispatch:

jobs:
clean:
name: Clean
runs-on: ubuntu-latest
timeout-minutes: 60
steps:
- name: Checkout
uses: actions/checkout@v2
with:
repository: Apocalypsor/Workflows-Cleaner
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.9'
- name: Install pipenv
run: python -m pip install --upgrade pipenv wheel
- name: Install dependencies
run: |
pipenv requirements > requirements.txt
pip install -r requirements.txt
- name: Clean
env:
GITHUB_REPO: ${{ github.repository }}
GITHUB_TOKEN: ${{ secrets.GIT_TOKEN }}
EXPIRE_TIME: 12h
run: python run.py

0 comments on commit fd6b89b

Please sign in to comment.