fix new environments not defined
This commit is contained in:
@@ -20,7 +20,8 @@ jobs:
|
|||||||
- name: Check In
|
- name: Check In
|
||||||
run: node index.js
|
run: node index.js
|
||||||
env:
|
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_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
|
||||||
DISCORD_USER: ${{ secrets.DISCORD_USER }}
|
DISCORD_USER: ${{ secrets.DISCORD_USER }}
|
||||||
workflow-keepalive:
|
workflow-keepalive:
|
||||||
|
|||||||
@@ -286,7 +286,11 @@ async function discordWebhookSend() {
|
|||||||
|
|
||||||
// Main execution
|
// Main execution
|
||||||
if (!creds || !creds.length) {
|
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) {
|
for (const index in creds) {
|
||||||
|
|||||||
+1
-1
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "endfield-auto-daily",
|
"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",
|
"description": "Easiest, full free, and no BS SKPORT Arknights: Endfield daily check-in using GitHub Actions",
|
||||||
"private": true,
|
"private": true,
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
|
|||||||
Reference in New Issue
Block a user