attempt 2

This commit is contained in:
Jun-te Kim 2025-09-01 09:43:53 +01:00
parent 55fec1a274
commit 5febdc01a0
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -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