From 5febdc01a0eff24178bcfad9bb642629a07c3c07 Mon Sep 17 00:00:00 2001 From: Jun-te Kim Date: Mon, 1 Sep 2025 09:43:53 +0100 Subject: [PATCH] attempt 2 --- .github/workflows/months_end.yml | 2 ++ etl/MonthEndUploader.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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