From e2f0c938d5cd69e5117dd7e13bcc8ae2ec88a8d4 Mon Sep 17 00:00:00 2001 From: vishreddy01 <126716045+vishreddy01@users.noreply.github.com> Date: Tue, 14 May 2024 20:33:27 -0700 Subject: [PATCH] Update main.py --- main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/main.py b/main.py index 0a0092e..4bdcb54 100644 --- a/main.py +++ b/main.py @@ -87,7 +87,7 @@ def create_dag_definition(application): #DAG = """{DAG}""" DAG = str(DAG) - g = Github(GH_TOKEN_SECRET) + g = Github(GITHUB_TOKEN_SECRET) repo = g.get_repo('bcgov/nr-airflow') repo.create_file(f'dags/{dag_id}.py', 'upload dags', DAG, branch='ui-testing') @@ -112,7 +112,7 @@ def extract_names(input_list): # Main function to orchestrate the process def main(): - g = Github(GH_TOKEN_SECRET) + g = Github(GITHUB_TOKEN_SECRET) repo = g.get_repo("bcgov/nr-airflow") contents = repo.get_contents("/dags", ref="ui-testing") existing_dags= [c.path for c in contents]