fix build version

This commit is contained in:
yimysty 2021-09-23 00:00:47 -07:00
parent 4845887d6b
commit 8f46aa45d0
2 changed files with 6 additions and 6 deletions

6
dist/index.js vendored
View file

@ -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);

View file

@ -84,15 +84,15 @@ async function run(): Promise<void> {
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)