mirror of
https://gitea.com/actions/upload-artifact.git
synced 2025-04-20 07:45: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"
|
||||
}
|
||||
});
|
||||
const unsignedUrl = response.data.value[0].url;
|
||||
console.log(response);
|
||||
const unsignedUrl = `${response.data.value[0].url}`;
|
||||
console.log(response.data);
|
||||
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,
|
||||
pages_build_version: process.env['GITHUB_SHA']
|
||||
}, {
|
||||
|
@ -75,10 +75,10 @@ async function run(): Promise<void> {
|
||||
"Content-Type": "application/json"
|
||||
}
|
||||
});
|
||||
const unsignedUrl = response.data.value[0].url
|
||||
console.log(response)
|
||||
const unsignedUrl = `${response.data.value[0].url}`
|
||||
console.log(response.data)
|
||||
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,
|
||||
pages_build_version: process.env['GITHUB_SHA']
|
||||
}, {
|
||||
|
Loading…
x
Reference in New Issue
Block a user