mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-22 08:45:33 +08:00
fix build version
This commit is contained in:
parent
4845887d6b
commit
8f46aa45d0
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -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);
|
||||||
|
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user