mirror of
https://github.com/gradle/actions.git
synced 2025-04-19 17:29:20 +08:00
Use typed-rest-client/HttpClient in preference to @actions/HttpClient
This commit is contained in:
parent
94baf225fe
commit
44db8041a5
@ -38,7 +38,6 @@
|
||||
"@actions/exec": "1.1.1",
|
||||
"@actions/github": "6.0.0",
|
||||
"@actions/glob": "0.5.0",
|
||||
"@actions/http-client": "2.2.3",
|
||||
"@actions/tool-cache": "2.0.2",
|
||||
"@octokit/rest": "21.1.0",
|
||||
"@octokit/webhooks-types": "7.6.1",
|
||||
|
@ -67,7 +67,7 @@ export async function getToken(accessKey: string, expiry: string): Promise<Devel
|
||||
}
|
||||
|
||||
class ShortLivedTokenClient {
|
||||
httpc = new httpm.HttpClient('gradle/actions/setup-gradle')
|
||||
httpc = new httpm.HttpClient('gradle/actions')
|
||||
maxRetries = 3
|
||||
retryInterval = 1000
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
import * as fs from 'fs'
|
||||
import * as os from 'os'
|
||||
import * as path from 'path'
|
||||
import * as httpm from '@actions/http-client'
|
||||
import * as httpm from 'typed-rest-client/HttpClient'
|
||||
import * as core from '@actions/core'
|
||||
import * as cache from '@actions/cache'
|
||||
import * as toolCache from '@actions/tool-cache'
|
||||
|
@ -4,7 +4,7 @@ import * as core from '@actions/core'
|
||||
|
||||
import fileWrapperChecksums from './wrapper-checksums.json'
|
||||
|
||||
const httpc = new httpm.HttpClient('gradle/wrapper-validation-action', undefined, {allowRetries: true, maxRetries: 3})
|
||||
const httpc = new httpm.HttpClient('gradle/actions', undefined, {allowRetries: true, maxRetries: 3})
|
||||
|
||||
export class WrapperChecksums {
|
||||
checksums = new Map<string, Set<string>>()
|
||||
|
Loading…
x
Reference in New Issue
Block a user