Skip to content

Commit 39d4cd5

Browse files
committed
2.0
2.0
1 parent e68e98f commit 39d4cd5

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/createproducts.yaml

+1-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on:
44
workflow_dispatch:
55

66
jobs:
7-
CreateAPIProduct:
7+
build:
88
runs-on: ubuntu-latest
99
environment: apiMana
1010

@@ -22,7 +22,6 @@ jobs:
2222
pip install python-dotenv
2323
sudo apt-get update
2424
sudo apt-get install azure-cli
25-
2625
- name: Azure Login
2726
uses: azure/login@v1
2827
with:

python/products.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
import os
22
import subprocess
33
from os import getenv
4+
from dotenv import load_dotenv
5+
6+
# Load the .env file
7+
load_dotenv('python/.env')
48

59
# Get environment variables
610
clientId = os.getenv('clientId')
@@ -11,8 +15,8 @@
1115
subscriptionId = os.getenv('subscriptionId')
1216

1317
# Define product_id and product_name directly in the code
14-
product_id = 'BetaProduct'
15-
product_name = 'Beta Product'
18+
product_id = 'GithubProducts'
19+
product_name = 'Github Products'
1620

1721
# Print the environment variables to debug
1822
print(f"clientId: {clientId}")

0 commit comments

Comments
 (0)