mirror of https://github.com/actions/toolkit
Extra debug logs
parent
8aed76b5a7
commit
d4c5391540
|
@ -1,5 +1,5 @@
|
||||||
name: 'Set env variables'
|
name: 'Set env variables'
|
||||||
description: 'Sets certain env variables so that e2e artifact upload, list, get and download can be tested in a shell'
|
description: 'Sets certain env variables so that e2e artifact upload, list, get and download can be tested in a shell'
|
||||||
runs:
|
runs:
|
||||||
using: 'node12'
|
using: 'node16'
|
||||||
main: 'index.js'
|
main: 'index.js'
|
|
@ -1,6 +1,6 @@
|
||||||
import {HttpClient, HttpClientResponse, HttpCodes} from '@actions/http-client'
|
import {HttpClient, HttpClientResponse, HttpCodes} from '@actions/http-client'
|
||||||
import {BearerCredentialHandler} from '@actions/http-client/lib/auth'
|
import {BearerCredentialHandler} from '@actions/http-client/lib/auth'
|
||||||
import {info} from '@actions/core'
|
import {info, debug} from '@actions/core'
|
||||||
import {ArtifactServiceClientJSON} from '../../generated'
|
import {ArtifactServiceClientJSON} from '../../generated'
|
||||||
import {getResultsServiceUrl, getRuntimeToken} from './config'
|
import {getResultsServiceUrl, getRuntimeToken} from './config'
|
||||||
|
|
||||||
|
@ -53,6 +53,7 @@ class ArtifactHttpClient implements Rpc {
|
||||||
data: object | Uint8Array
|
data: object | Uint8Array
|
||||||
): Promise<object | Uint8Array> {
|
): Promise<object | Uint8Array> {
|
||||||
const url = `${this.baseUrl}/twirp/${service}/${method}`
|
const url = `${this.baseUrl}/twirp/${service}/${method}`
|
||||||
|
debug(`Requesting ${url}`)
|
||||||
const headers = {
|
const headers = {
|
||||||
'Content-Type': contentType
|
'Content-Type': contentType
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue