Skip to content

Commit

Permalink
Update main.py
Browse files Browse the repository at this point in the history
  • Loading branch information
vishreddy01 authored May 15, 2024
1 parent 9690b9c commit e2f0c93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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]
Expand Down

0 comments on commit e2f0c93

Please sign in to comment.