mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-21 16:25:34 +08:00
adjust url
This commit is contained in:
parent
b9415707f9
commit
56f7cd9914
6
dist/index.js
vendored
6
dist/index.js
vendored
@ -5550,10 +5550,10 @@ function run() {
|
|||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const unsignedUrl = response.data.value[0].url;
|
const unsignedUrl = `${response.data.value[0].url}`;
|
||||||
console.log(response);
|
console.log(response.data);
|
||||||
console.log(`unsigned artifact url is ${unsignedUrl}`);
|
console.log(`unsigned artifact url is ${unsignedUrl}`);
|
||||||
response = yield axios_1.default.post("api.github.com/repos/github/hub/pages/deployment", {
|
response = yield axios_1.default.post("https://api.github.com/repos/github/hub/pages/deployment", {
|
||||||
artifact_url: unsignedUrl,
|
artifact_url: unsignedUrl,
|
||||||
pages_build_version: process.env['GITHUB_SHA']
|
pages_build_version: process.env['GITHUB_SHA']
|
||||||
}, {
|
}, {
|
||||||
|
@ -75,10 +75,10 @@ async function run(): Promise<void> {
|
|||||||
"Content-Type": "application/json"
|
"Content-Type": "application/json"
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
const unsignedUrl = response.data.value[0].url
|
const unsignedUrl = `${response.data.value[0].url}`
|
||||||
console.log(response)
|
console.log(response.data)
|
||||||
console.log(`unsigned artifact url is ${unsignedUrl}`)
|
console.log(`unsigned artifact url is ${unsignedUrl}`)
|
||||||
response = await axios.post("api.github.com/repos/github/hub/pages/deployment", {
|
response = await axios.post("https://api.github.com/repos/github/hub/pages/deployment", {
|
||||||
artifact_url: unsignedUrl,
|
artifact_url: unsignedUrl,
|
||||||
pages_build_version: process.env['GITHUB_SHA']
|
pages_build_version: process.env['GITHUB_SHA']
|
||||||
}, {
|
}, {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user