genshin-impact-helper/.github/workflows/main.yml
2020-12-23 13:34:25 +08:00

29 lines
680 B
YAML

name: "Genshin Impact Helper"
on:
schedule:
- cron: "0 22 * * *" # scheduled at 06:00 (UTC+8) everyday
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/master'
steps:
- name: Checkout master
uses: actions/checkout@v2
with:
repository: y1ndan/genshin-impact-helper
ref: master
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Run sign
run: |
pip install -r requirements.txt
echo "${{ secrets.COOKIE }}" | tr '#' "\n" | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'