mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-19 17:16:47 +00:00
pass right repo name
This commit is contained in:
parent
18c9955185
commit
cac03fb72a
2 changed files with 2 additions and 2 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -5557,7 +5557,7 @@ function run() {
|
|||
console.log("missing github token");
|
||||
}
|
||||
else {
|
||||
response = yield axios_1.default.post("https://api.github.com/repos/github/hub/pages/deployment", {
|
||||
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']
|
||||
}, {
|
||||
|
|
|
@ -81,7 +81,7 @@ async function run(): Promise<void> {
|
|||
if (!inputs.token) {
|
||||
console.log("missing github token")
|
||||
} else {
|
||||
response = await axios.post("https://api.github.com/repos/github/hub/pages/deployment", {
|
||||
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']
|
||||
}, {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue