1
0
Fork 0

Extra debug logs

pull/1497/head
Konrad Pabjan 2023-08-17 09:55:28 -04:00
parent 8aed76b5a7
commit d4c5391540
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
name: 'Set env variables'
description: 'Sets certain env variables so that e2e artifact upload, list, get and download can be tested in a shell'
runs:
using: 'node12'
using: 'node16'
main: 'index.js'

View File

@ -1,6 +1,6 @@
import {HttpClient, HttpClientResponse, HttpCodes} from '@actions/http-client'
import {BearerCredentialHandler} from '@actions/http-client/lib/auth'
import {info} from '@actions/core'
import {info, debug} from '@actions/core'
import {ArtifactServiceClientJSON} from '../../generated'
import {getResultsServiceUrl, getRuntimeToken} from './config'
@ -53,6 +53,7 @@ class ArtifactHttpClient implements Rpc {
data: object | Uint8Array
): Promise<object | Uint8Array> {
const url = `${this.baseUrl}/twirp/${service}/${method}`
debug(`Requesting ${url}`)
const headers = {
'Content-Type': contentType
}