This repository has been archived by the owner on Nov 1, 2024. It is now read-only.
generate #253
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: generate | |
on: | |
schedule: | |
- cron: '0 8 * * *' | |
workflow_dispatch: | |
jobs: | |
download: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Clean old OPML | |
run: rm *.xml | |
- name: Install Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install dropbox | |
- name: Download | |
run: | | |
python download.py ${{ secrets.DROPBOX_APP_KEY }} ${{ secrets.DROPBOX_APP_SECRET }} ${{ secrets.DROPBOX_API_KEY }} | |
- name: Generate README | |
run: python deploy.py | |
- name: Commit & Push changes | |
uses: actions-js/push@master | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
branch: "master" |