Skip to content

Commit

Permalink
Fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
ribtoks committed Jan 18, 2025
1 parent 4504b9d commit ac5171b
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -94,11 +94,14 @@ func flagToBool(s string) bool {
}

func environment() *env {
cr := strings.Split(os.Getenv("INPUT_REPO"), "/")
ir := strings.Split(os.Getenv("INPUT_ISSUE_REPO"), "/")
if len(ir) == 0 {
ir = cr
codeRepo := os.Getenv("INPUT_REPO")
cr := strings.Split(codeRepo, "/")

issueRepo := os.Getenv("INPUT_ISSUE_REPO")
if len(issueRepo) == 0 {
issueRepo = codeRepo
}
ir := strings.Split(issueRepo, "/")

ref := os.Getenv("INPUT_REF")
e := &env{
Expand Down

0 comments on commit ac5171b

Please sign in to comment.