add twirp client

This commit is contained in:
Bethany
2023-08-04 09:23:14 -07:00
parent 3ebee1e8b4
commit 8a5343d54a
2 changed files with 148 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
export function getRuntimeToken(): string {
const token = process.env['ACTIONS_RUNTIME_TOKEN']
if (!token) {
throw new Error('Unable to get ACTIONS_RUNTIME_TOKEN env variable')
}
return token
}
export function getResultsServiceUrl(): string {
const resultsUrl = process.env['ACTIONS_RESULTS_URL']
if (!resultsUrl) {
throw new Error('Unable to get ACTIONS_RESULTS_URL env variable')
}
return resultsUrl
}