Commit 7fb99c8 1 parent 4f8abff commit 7fb99c8 Copy full SHA for 7fb99c8
File tree 2 files changed +5
-6
lines changed
2 files changed +5
-6
lines changed Original file line number Diff line number Diff line change 39
39
apimServiceName : ${{ secrets.APIM_SERVICE_NAME }}
40
40
tenantId : ${{ secrets.TENANT_ID }}
41
41
subscriptionId : ${{ secrets.SUBSCRIPTION_ID }}
42
+ product_id : ${{ secrets.PRODUCT_ID }}
43
+ product_name : ${{ secrets.PRODUCT_NAME }}
42
44
Original file line number Diff line number Diff line change 1
1
import os
2
2
import subprocess
3
3
from os import getenv
4
- from dotenv import load_dotenv
5
-
6
- # Load the .env file
7
- load_dotenv ('python/.env' )
8
4
5
+ # Import the getenv function from the os module
9
6
# Get environment variables
10
7
clientId = os .getenv ('clientId' )
11
8
clientSecret = os .getenv ('clientSecret' )
15
12
subscriptionId = os .getenv ('subscriptionId' )
16
13
17
14
# Define product_id and product_name directly in the code
18
- product_id = 'GithubProduct'
19
- product_name = 'Github Product'
15
+ product_id = os . getenv ( 'product_id' )
16
+ product_name = os . getenv ( 'product_name' )
20
17
21
18
# Print the environment variables to debug
22
19
print (f"clientId: { clientId } " )
You can’t perform that action at this time.
0 commit comments