diff --git a/action.yaml b/action.yaml index 183b516..baaa447 100644 --- a/action.yaml +++ b/action.yaml @@ -41,5 +41,5 @@ runs: using: docker image: docker://ghcr.io/sunny-1651/manual-approval:latest env: - repo-owner: env.target-repository-owner - repo-name: env.target-repository + repo-owner: ${{ env.target-repository-owner }} + repo-name: ${{ env.target-repository-name }} diff --git a/main.go b/main.go index bde713e..5849345 100644 --- a/main.go +++ b/main.go @@ -149,10 +149,9 @@ func main() { os.Exit(1) } - repoowner := os.Getenv("repo-owner") - reponame := os.Getenv("repo-name") - // fmt.Printf("repo owner: %s, name: %s \n", envVarTargetRepo, envVarTargetRepoOwner) - fmt.Printf("repo owner: %s, name: %s \n", repoowner, reponame) + targetRepoOwner := os.Getenv("target-repository-owner") + targetRepoName := os.Getenv("target-repository-name") + fmt.Printf("repo owner: %s, name: %s \n", targetRepoOwner, targetRepoName) repoFullName := os.Getenv(envVarRepoFullName) runID, err := strconv.Atoi(os.Getenv(envVarRunID))