add twirp client

This commit is contained in:
Bethany committed 2023-08-04 09:23:14 -07:00
1 parent 8545c6fd72
commit 3ac0cace97
2 files changed
+148

No files matched your search

+15
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
}