From 6fcbd527c1e1b1f846e033cd081124000a027e40 Mon Sep 17 00:00:00 2001 From: iabhee Date: Fri, 20 Dec 2024 11:51:29 -0600 Subject: [PATCH] update to test pr --- .github/workflows/terraform.yml | 4 +++- resume/resume/index.js | 8 ++++---- terraform/outputs.tf | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/terraform.yml b/.github/workflows/terraform.yml index 2f289b9..c3283d1 100644 --- a/.github/workflows/terraform.yml +++ b/.github/workflows/terraform.yml @@ -9,7 +9,9 @@ on: push: branches: - main - + paths: + - 'terraform/**' + env: TF_CLOUD_ORGANIZATION: "${{ secrets.TF_CLOUD_ORGANIZATION }}" TF_API_TOKEN: "${{ secrets.TF_API_TOKEN }}" diff --git a/resume/resume/index.js b/resume/resume/index.js index 9055f2f..177a0d7 100644 --- a/resume/resume/index.js +++ b/resume/resume/index.js @@ -2,10 +2,10 @@ const { CosmosClient } = require("@azure/cosmos"); const { render } = require("jsonresume-theme-elegant"); // Import the theme module.exports = async function (context, req) { - const endpoint = process.env.COSMOS_DB_ENDPOINT; - const key = process.env.COSMOS_DB_KEY; - const databaseName = process.env.COSMOS_DB_DATABASE; - const containerName = process.env.COSMOS_DB_CONTAINER; + const endpoint = process.env.COSMOS_DB_ENDPOINT; //COSMOS DB endpoint url + const key = process.env.COSMOS_DB_KEY; //COSMOS DB primary key + const databaseName = process.env.COSMOS_DB_DATABASE; //COSMOS DB database name + const containerName = process.env.COSMOS_DB_CONTAINER; //COSMOS DB container name if (!endpoint || !key || !databaseName || !containerName) { context.res = { diff --git a/terraform/outputs.tf b/terraform/outputs.tf index b6b2acb..447d67b 100644 --- a/terraform/outputs.tf +++ b/terraform/outputs.tf @@ -1,4 +1,4 @@ -# # Output from Azure Functions module +# # Outputs from Azure Functions module output "function_app_name" { value = module.azure_functions.function_app_name description = "Name of the Azure Function App"