From b914b792229e17e201573a222b95b5de49de1373 Mon Sep 17 00:00:00 2001 From: sunny Date: Mon, 21 Oct 2024 18:42:20 +0530 Subject: [PATCH] partial commit @ testing --- action.yaml | 4 ++-- main.go | 7 +++---- 2 files changed, 5 insertions(+), 6 deletions(-) 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))