Commit 39d4cd5 1 parent e68e98f commit 39d4cd5 Copy full SHA for 39d4cd5
File tree 2 files changed +7
-4
lines changed
2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 4
4
workflow_dispatch :
5
5
6
6
jobs :
7
- CreateAPIProduct :
7
+ build :
8
8
runs-on : ubuntu-latest
9
9
environment : apiMana
10
10
22
22
pip install python-dotenv
23
23
sudo apt-get update
24
24
sudo apt-get install azure-cli
25
-
26
25
- name : Azure Login
27
26
uses : azure/login@v1
28
27
with :
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' )
4
8
5
9
# Get environment variables
6
10
clientId = os .getenv ('clientId' )
11
15
subscriptionId = os .getenv ('subscriptionId' )
12
16
13
17
# 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 '
16
20
17
21
# Print the environment variables to debug
18
22
print (f"clientId: { clientId } " )
You can’t perform that action at this time.
0 commit comments