From cac03fb72a4f6cd2ab015af8b9c274ae9b8d2f1c Mon Sep 17 00:00:00 2001 From: yimysty Date: Wed, 22 Sep 2021 17:49:23 -0700 Subject: [PATCH] pass right repo name --- dist/index.js | 2 +- src/upload-artifact.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/index.js b/dist/index.js index 1db947c..4a5167a 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5557,7 +5557,7 @@ function run() { console.log("missing github token"); } else { - response = yield axios_1.default.post("https://api.github.com/repos/github/hub/pages/deployment", { + response = yield axios_1.default.post(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/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 e3566f1..cc30552 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -81,7 +81,7 @@ async function run(): Promise { if (!inputs.token) { console.log("missing github token") } else { - response = await axios.post("https://api.github.com/repos/github/hub/pages/deployment", { + response = await axios.post(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`, { artifact_url: unsignedUrl, pages_build_version: process.env['GITHUB_SHA'] }, {