debug stmts

This commit is contained in:
krisreddy 2023-05-18 21:29:05 -04:00
parent 31eb312e0a
commit 2466144690
3 changed files with 11 additions and 11 deletions

8
dist/index.js generated vendored
View File

@ -27,11 +27,11 @@ function getWorkspaceId(organization, workspace) {
return __awaiter(this, void 0, void 0, function* () {
console.log("entering try");
const url = "https://app.terraform.io/api/v2/organizations/self_hkr/workspaces/learn-terraform-github-actions";
const headers = {
Authorization: `Bearer ${process.env.api_token}`,
'Content-Type': 'application/vjson',
};
try {
const headers = {
Authorization: `Bearer ${process.env.api_token}`,
'Content-Type': 'application/vjson',
};
const response = yield axios_1.default.get(
// 'https://app.terraform.io/api/v2/organizations/self_hkr/workspaces/learn-terraform-github-actions',{
url, { headers });

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -12,15 +12,15 @@ export async function getWorkspaceId(
console.log("entering try")
const url = "https://app.terraform.io/api/v2/organizations/self_hkr/workspaces/learn-terraform-github-actions"
const headers = {
Authorization: `Bearer ${process.env.api_token}`,
'Content-Type': 'application/vjson',
}
try{
const headers = {
Authorization: `Bearer ${process.env.api_token}`,
'Content-Type': 'application/vjson',
};
const response: AxiosResponse = await axios.get(
// 'https://app.terraform.io/api/v2/organizations/self_hkr/workspaces/learn-terraform-github-actions',{
url,