From 4a6e757160be4b7e15053856f692acf6e9b6797d Mon Sep 17 00:00:00 2001 From: fiqryq Date: Sun, 19 May 2024 11:56:06 +0700 Subject: [PATCH] fix: env variable name --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index d52a909..fca2c2e 100644 --- a/index.js +++ b/index.js @@ -3,8 +3,8 @@ const github = require('@actions/github'); const { Octokit } = require('@octokit/rest'); const axios = require('axios'); -const githubToken = core.getInput('gh-token'); -const openaiApiKey = core.getInput('openai-api-key'); +const githubToken = process.env.GH_TOKEN; +const openaiApiKey = process.env.OPENAI_API_KEY; const octokit = new Octokit({ auth: githubToken });