From 742612e335de19cefd59099fd2e2f824d9a6dcbc Mon Sep 17 00:00:00 2001 From: Seya <31957516+sglkc@users.noreply.github.com> Date: Tue, 3 Feb 2026 22:02:03 +0700 Subject: [PATCH] fix new environments not defined --- .github/workflows/login.yml | 3 ++- index.js | 6 +++++- package.json | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/login.yml b/.github/workflows/login.yml index 43af522..59a775a 100644 --- a/.github/workflows/login.yml +++ b/.github/workflows/login.yml @@ -20,7 +20,8 @@ jobs: - name: Check In run: node index.js env: - CRED: ${{ secrets.CRED }} + SK_OAUTH_CRED_KEY: ${{ secrets.SK_OAUTH_CRED_KEY }} + SK_TOKEN_CACHE_KEY: ${{ secrets.SK_TOKEN_CACHE_KEY }} DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }} DISCORD_USER: ${{ secrets.DISCORD_USER }} workflow-keepalive: diff --git a/index.js b/index.js index 97528d4..16da39b 100755 --- a/index.js +++ b/index.js @@ -286,7 +286,11 @@ async function discordWebhookSend() { // Main execution if (!creds || !creds.length) { - throw new Error('CRED environment variable not set!') + throw new Error('SK_OAUTH_CRED_KEY environment variable not set!') +} + +if (!tokens || !tokens.length) { + throw new Error('SK_TOKEN_CACHE_KEY environment variable not set!') } for (const index in creds) { diff --git a/package.json b/package.json index 8f6caa9..36c6718 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "endfield-auto-daily", - "version": "2.0.0", + "version": "2.0.1", "description": "Easiest, full free, and no BS SKPORT Arknights: Endfield daily check-in using GitHub Actions", "private": true, "main": "index.js",