From 78d95f94e893d58d0e41e2eadb3e80170cca4c06 Mon Sep 17 00:00:00 2001 From: y1ndan <53508617+y1ndan@users.noreply.github.com> Date: Wed, 28 Oct 2020 16:17:21 +0800 Subject: [PATCH] first commit --- .github/workflows/ys.yml | 26 ++++++++++++++++++++++ genshin.py | 48 ++++++++++++++++++++++++++++++++++++++++ requirements.txt | 1 + 3 files changed, 75 insertions(+) create mode 100644 .github/workflows/ys.yml create mode 100644 genshin.py create mode 100644 requirements.txt diff --git a/.github/workflows/ys.yml b/.github/workflows/ys.yml new file mode 100644 index 0000000..0e48a8d --- /dev/null +++ b/.github/workflows/ys.yml @@ -0,0 +1,26 @@ +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.7 + - run: | + pip install -r requirements.txt + string="${{ secrets.COOKIE }}" + IFS="#" + array=($string) + for var in ${array[@]} + do + python3 genshin.py <