Skip to content

Commit 9131c11

Browse files
committed
fixing input variable names
1 parent c2274ff commit 9131c11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ func getTokenRemainingValidity(timestamp interface{}) float64 {
5050
}
5151

5252
func getGitHubClient() (*github.Client, context.Context, error) {
53-
pat := os.Getenv("PAT")
53+
pat := os.Getenv("INPUT_PAT")
5454
if len(pat) == 0 {
5555
return nil, nil, errors.New("a GitHub token must be passed as 'PAT' variable to the action")
5656
}
@@ -65,7 +65,7 @@ func getGitHubClient() (*github.Client, context.Context, error) {
6565

6666
func getDebugMode() bool {
6767
isDebugMode := false
68-
debugModeStr, exists := os.LookupEnv("DebugMode")
68+
debugModeStr, exists := os.LookupEnv("INPUT_DEBUGMODE")
6969

7070
if exists {
7171
debugMode, err := strconv.ParseBool(debugModeStr)

0 commit comments

Comments
 (0)