From 39f08c1476818a0005d5aa01e7928221a97d355c Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 6 May 2024 15:31:35 -0400 Subject: [PATCH 1/5] Update cosmosdb_ci_cd.yml --- .github/workflows/cosmosdb_ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cosmosdb_ci_cd.yml b/.github/workflows/cosmosdb_ci_cd.yml index 0944fe77..2a7110f4 100644 --- a/.github/workflows/cosmosdb_ci_cd.yml +++ b/.github/workflows/cosmosdb_ci_cd.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install azure-cosmos python-dotenv # Add python-dotenv here + pip install azure-cosmos - name: Run script run: python run.py From 107dc2cbd214d9cdfed6892c0e108bc3da23d8b1 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 6 May 2024 15:33:03 -0400 Subject: [PATCH 2/5] Update cosmosdb_ci_cd.yml --- .github/workflows/cosmosdb_ci_cd.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/cosmosdb_ci_cd.yml b/.github/workflows/cosmosdb_ci_cd.yml index 2a7110f4..0944fe77 100644 --- a/.github/workflows/cosmosdb_ci_cd.yml +++ b/.github/workflows/cosmosdb_ci_cd.yml @@ -21,7 +21,7 @@ jobs: - name: Install dependencies run: | python -m pip install --upgrade pip - pip install azure-cosmos + pip install azure-cosmos python-dotenv # Add python-dotenv here - name: Run script run: python run.py From 94ef5ea8058445a7607b452dc5e08ef21263119f Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 6 May 2024 15:34:59 -0400 Subject: [PATCH 3/5] Update cosmosdb_ci_cd.yml --- .github/workflows/cosmosdb_ci_cd.yml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/cosmosdb_ci_cd.yml b/.github/workflows/cosmosdb_ci_cd.yml index 0944fe77..b6dddafc 100644 --- a/.github/workflows/cosmosdb_ci_cd.yml +++ b/.github/workflows/cosmosdb_ci_cd.yml @@ -11,17 +11,27 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - name: Checkout repository + uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v2 with: python-version: '3.8' - + - name: Install dependencies run: | python -m pip install --upgrade pip - pip install azure-cosmos python-dotenv # Add python-dotenv here + pip install azure-cosmos + pip install python-dotenv + + - name: Set up environment variables + run: | + echo "HOST=$HOST" >> $GITHUB_ENV + echo "MASTER_KEY=$MASTER_KEY" >> $GITHUB_ENV - name: Run script run: python run.py + env: + HOST: ${{ secrets.COSMOS_DB_HOST }} + MASTER_KEY: ${{ secrets.COSMOS_DB_MASTER_KEY }} From 8ed27c88f278c9d5fd5b08896921ca915731c6a5 Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 6 May 2024 15:36:44 -0400 Subject: [PATCH 4/5] Update cosmosdb_ci_cd.yml --- .github/workflows/cosmosdb_ci_cd.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cosmosdb_ci_cd.yml b/.github/workflows/cosmosdb_ci_cd.yml index b6dddafc..2fa56bd0 100644 --- a/.github/workflows/cosmosdb_ci_cd.yml +++ b/.github/workflows/cosmosdb_ci_cd.yml @@ -29,6 +29,7 @@ jobs: run: | echo "HOST=$HOST" >> $GITHUB_ENV echo "MASTER_KEY=$MASTER_KEY" >> $GITHUB_ENV + source .env - name: Run script run: python run.py From 75dd0b619941e4bb395c2ec21504f010c634dcda Mon Sep 17 00:00:00 2001 From: DHRUMIL PATEL <123137675+dhrumilp12@users.noreply.github.com> Date: Mon, 6 May 2024 15:39:28 -0400 Subject: [PATCH 5/5] Update cosmosdb_ci_cd.yml --- .github/workflows/cosmosdb_ci_cd.yml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.github/workflows/cosmosdb_ci_cd.yml b/.github/workflows/cosmosdb_ci_cd.yml index 2fa56bd0..8d30b6cc 100644 --- a/.github/workflows/cosmosdb_ci_cd.yml +++ b/.github/workflows/cosmosdb_ci_cd.yml @@ -11,28 +11,22 @@ jobs: runs-on: ubuntu-latest steps: - - name: Checkout repository - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - name: Set up Python 3.8 uses: actions/setup-python@v2 with: python-version: '3.8' - + - name: Install dependencies run: | python -m pip install --upgrade pip pip install azure-cosmos - pip install python-dotenv - name: Set up environment variables run: | - echo "HOST=$HOST" >> $GITHUB_ENV - echo "MASTER_KEY=$MASTER_KEY" >> $GITHUB_ENV - source .env + echo "HOST=${{ secrets.ACCOUNT_HOST }}" >> $GITHUB_ENV + echo "MASTER_KEY=${{ secrets.ACCOUNT_KEY }}" >> $GITHUB_ENV - name: Run script run: python run.py - env: - HOST: ${{ secrets.COSMOS_DB_HOST }} - MASTER_KEY: ${{ secrets.COSMOS_DB_MASTER_KEY }}