refactor: sleep in schedule event; update run sign

This commit is contained in:
y1ndan 2021-01-04 15:01:18 +08:00
parent 1532a06cb4
commit f195f08e38

View File

@ -35,10 +35,13 @@ jobs:
with:
python-version: 3.8
- name: Random sleep
if: github.event_name == 'schedule'
sleep $(shuf -i 10-300 -n 1)
- name: Run sign
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
sleep $(shuf -i 10-300 -n 1)
echo "${{ secrets.COOKIE }}" | tr '#' "\n" | sed 's/$/&#${{ secrets.SCKEY }}/g' | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'
echo '${{ secrets.COOKIE }}' | tr '#' '\n' | sed 's/^/-c &/g' | sed 's/$/&${{ secrets.SCKEY }}/g' | xargs -I {} sh -c 'echo "{}" | python3 ./genshin.py'