hanime-auto-coins #717
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: hanime-auto-coins | |
on: | |
workflow_dispatch: | |
schedule: | |
- cron: '27 */4 * * *' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v1 | |
with: | |
python-version: 3.7 | |
- name: Cache pip packages | |
uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- name: Install requirements | |
run: pip install -r ./requirements.txt | |
- name: Working | |
env: | |
HANIME_EMAIL: ${{ secrets.HANIME_EMAIL }} | |
HANIME_PASSWORD: ${{ secrets.HANIME_PASSWORD }} | |
WEBHOOK_URL: ${{ secrets.WEBHOOK_URL }} | |
run: python ./AIO.py |