diff --git a/.github/workflows/months_end.yml b/.github/workflows/months_end.yml index 69a1f91..2bdfb62 100644 --- a/.github/workflows/months_end.yml +++ b/.github/workflows/months_end.yml @@ -3,6 +3,8 @@ on: schedule: - cron: '0 7 29 * *' # Runs at 7:00 AM UTC on the 29th of every month workflow_dispatch: +push: + branches: [main, feature/month_end_automation_of_all] jobs: surveyed-needs-sign-off: diff --git a/etl/MonthEndUploader.py b/etl/MonthEndUploader.py index 927b5c0..6d0f97e 100644 --- a/etl/MonthEndUploader.py +++ b/etl/MonthEndUploader.py @@ -12,7 +12,7 @@ def upload_to_month_end_folder(file_name_on_sp, local_file_path, add_to_path): parent_folder = "General/Junte Kim/month end" today = datetime.today() # Format as "Month YYYY" - formatted_date = today.strftime("%B %Y") + formatted_date = today.strftime("%B %Y") + " Attempt 2" sharepoint.create_dir(formatted_date, parent_folder) sharepoint_path = parent_folder + "/" + formatted_date