1. Added an error handling 2. Better code 3. Logging json as result 4. Update README 5. Update workflow
24 lines
455 B
YAML
24 lines
455 B
YAML
name: "Genshin Impact Helper"
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
schedule:
|
|
- cron: "0 22 * * *"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- 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'
|
|
|