From edc163b5f2bd8052cf13bfb5fa42c77575ed8768 Mon Sep 17 00:00:00 2001 From: Garrett Delfosse Date: Sat, 27 Apr 2024 18:43:38 +0000 Subject: [PATCH] fix testing --- github-upload-public-key/run.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/github-upload-public-key/run.sh b/github-upload-public-key/run.sh index e973824..68f30d7 100755 --- a/github-upload-public-key/run.sh +++ b/github-upload-public-key/run.sh @@ -79,7 +79,7 @@ UPLOAD_RESPONSE=$(curl -L -s \ -H "Authorization: Bearer $GITHUB_TOKEN" \ -H "X-GitHub-Api-Version: 2022-11-28" \ https://api.github.com/user/keys \ - -d "{\"title\":\"$CODER_PUBLIC_KEY_NAME\",\"key\":\"nah\"}" + -d "{\"title\":\"$CODER_PUBLIC_KEY_NAME\",\"key\":\"$PUBLIC_KEY\"}" ) UPLOAD_RESPONSE_STATUS=$(tail -n1 <<< "$UPLOAD_RESPONSE") UPLOAD_RESPONSE_BODY=$(sed \$d <<< "$UPLOAD_RESPONSE")