claer #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |