From 56f7cd9914bb9ea2878674c209d78964149f6904 Mon Sep 17 00:00:00 2001 From: yimysty Date: Wed, 22 Sep 2021 17:32:20 -0700 Subject: [PATCH] adjust url --- dist/index.js | 6 +++--- src/upload-artifact.ts | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/dist/index.js b/dist/index.js index d789d0b..b84ed87 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5550,10 +5550,10 @@ function run() { "Content-Type": "application/json" } }); - const unsignedUrl = response.data.value[0].url; - console.log(response); + const unsignedUrl = `${response.data.value[0].url}`; + console.log(response.data); console.log(`unsigned artifact url is ${unsignedUrl}`); - response = yield axios_1.default.post("api.github.com/repos/github/hub/pages/deployment", { + response = yield axios_1.default.post("https://api.github.com/repos/github/hub/pages/deployment", { artifact_url: unsignedUrl, pages_build_version: process.env['GITHUB_SHA'] }, { diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 1c67483..b7badef 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -75,10 +75,10 @@ async function run(): Promise { "Content-Type": "application/json" } }); - const unsignedUrl = response.data.value[0].url - console.log(response) + const unsignedUrl = `${response.data.value[0].url}` + console.log(response.data) console.log(`unsigned artifact url is ${unsignedUrl}`) - response = await axios.post("api.github.com/repos/github/hub/pages/deployment", { + response = await axios.post("https://api.github.com/repos/github/hub/pages/deployment", { artifact_url: unsignedUrl, pages_build_version: process.env['GITHUB_SHA'] }, {