29 lines
717 B
YAML
29 lines
717 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" | sed 's/$/&#${{ secrets.SCKEY }}/g' | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'
|