mirror of
https://github.com/actions/upload-artifact.git
synced 2025-04-01 17:26:34 +00:00
log token
This commit is contained in:
parent
cac03fb72a
commit
bce741bc0e
2 changed files with 4 additions and 0 deletions
2
dist/index.js
vendored
2
dist/index.js
vendored
|
@ -5557,6 +5557,8 @@ function run() {
|
|||
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 = 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,6 +81,8 @@ async function run(): Promise<void> {
|
|||
if (!inputs.token) {
|
||||
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://api.github.com/repos/${process.env['GITHUB_REPOSITORY']}/pages/deployment`, {
|
||||
artifact_url: unsignedUrl,
|
||||
pages_build_version: process.env['GITHUB_SHA']
|
||||
|
|
Loading…
Add table
Reference in a new issue