A GitHub Action to run the Hoyolab daily check-in for Genshin Impact, Honkai Impact 3rd, Honkai Star Rail and Tears of Themis.
If you want to run this action, fork and use the codemasher/hoyolab-daily-checkin repo.
Create a new repository with an actions workflow: .github/workflows/checkin.yml
which contains the following:
on:
schedule:
- cron: "0 19 * * *"
jobs:
hoyolab-checkin:
name: "Hoyolab daily check-in"
runs-on: ubuntu-latest
steps:
- name: "Checkout"
uses: actions/checkout@v3
- name: "Hoyolab check-in (Account 1)"
uses: codemasher/hoyolab-daily-checkin-action@main
with:
cookie: ${{ secrets.ACCOUNT1 }}
language: "en-us"
genshin: true
honkai3rd: true
starrail: true
tearsofthemis: false
# repeat the previous step for each of your accounts
cookie
: [required] The id/token cookie parameters from Hoyolabgenshin
(boolean
): Genshin Impacthonkai3rd
(boolean
): Honkai Inpact 3rdstarrail
(boolean
): Honkai Star Railtearsofthemis
(boolean
): Tears of Themislanguage
: Language (only affects the returned message), can be one ofzh-cn
,zh-tw
,de-de
,en-us
,es-es
,fr-fr
,id-id
,it-it
,ja-jp
,ko-kr
,pt-pt
,ru-ru
,th-th
,tr-tr
,vi-vn
account-description
(string
): An identifier for the current account that will appear in notificationsonly-notify-failed
(boolean
): Only send notifications when a job faileddiscord-notify
(boolean
): Enable Discord notificationsdiscord-webhook
(string
): The Discord webhook URL, see https://support.discord.com/hc/en-us/articles/228383668discord-user-id
(number
): The Discord user ID to ping, see: https://support.discord.com/hc/en-us/articles/206346498
WE'RE TOTALLY NOT RUNNING A PRODUCTION-LIKE ENVIRONMENT ON GITHUB.
WE'RE RUNNING A TEST AND POST THE RESULT TO AN EXTERNAL WEBSITE.
WE'RE JUST LOOKING IF THE SCRIPT STILL WORKS ON A DAILY SCHEDULE.
I take no responsibility for the security of your account(s) by using this script.