From cf18ad8a3aace48c89b640a8a548a0ede9356190 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Thu, 18 Jul 2024 17:43:44 +0000 Subject: [PATCH] Add event reminder workflows and scripts --- .github/workflows/reminder_Game_Night.yml | 2 ++ .github/workflows/reminder_Hike_to_Gile_Mountain.yml | 2 ++ .github/workflows/reminder_Hikes_with_The_Chair.yml | 2 ++ .../workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml | 2 ++ .github/workflows/reminder_Pumpkin_Carving.yml | 2 ++ .github/workflows/reminder_Research_Extravaganza.yml | 2 ++ .github/workflows/reminder_Weekly_Bagel_Brunch.yml | 2 ++ .github/workflows/reminder_Weekly_Wednesday_Woccoms.yml | 2 ++ .github/workflows/reminder_Winter_Holiday_Party.yml | 2 ++ scripts/send_email_Game_Night.py | 3 ++- scripts/send_email_Hike_to_Gile_Mountain.py | 3 ++- scripts/send_email_Hikes_with_The_Chair.py | 3 ++- scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py | 3 ++- scripts/send_email_Pumpkin_Carving.py | 3 ++- scripts/send_email_Research_Extravaganza.py | 3 ++- scripts/send_email_Weekly_Bagel_Brunch.py | 3 ++- scripts/send_email_Weekly_Wednesday_Woccoms.py | 3 ++- scripts/send_email_Winter_Holiday_Party.py | 3 ++- 18 files changed, 36 insertions(+), 9 deletions(-) diff --git a/.github/workflows/reminder_Game_Night.yml b/.github/workflows/reminder_Game_Night.yml index 183299f..104e919 100644 --- a/.github/workflows/reminder_Game_Night.yml +++ b/.github/workflows/reminder_Game_Night.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Game_Night.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Hike_to_Gile_Mountain.yml b/.github/workflows/reminder_Hike_to_Gile_Mountain.yml index 1839454..0a5f260 100644 --- a/.github/workflows/reminder_Hike_to_Gile_Mountain.yml +++ b/.github/workflows/reminder_Hike_to_Gile_Mountain.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Hike_to_Gile_Mountain.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Hikes_with_The_Chair.yml b/.github/workflows/reminder_Hikes_with_The_Chair.yml index c72b900..f8c1c56 100644 --- a/.github/workflows/reminder_Hikes_with_The_Chair.yml +++ b/.github/workflows/reminder_Hikes_with_The_Chair.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Hikes_with_The_Chair.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml b/.github/workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml index 3ee87fd..bbc7900 100644 --- a/.github/workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml +++ b/.github/workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Pumpkin_Carving.yml b/.github/workflows/reminder_Pumpkin_Carving.yml index a6d12ec..e722106 100644 --- a/.github/workflows/reminder_Pumpkin_Carving.yml +++ b/.github/workflows/reminder_Pumpkin_Carving.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Pumpkin_Carving.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Research_Extravaganza.yml b/.github/workflows/reminder_Research_Extravaganza.yml index ab04b57..37c2b7a 100644 --- a/.github/workflows/reminder_Research_Extravaganza.yml +++ b/.github/workflows/reminder_Research_Extravaganza.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Research_Extravaganza.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Weekly_Bagel_Brunch.yml b/.github/workflows/reminder_Weekly_Bagel_Brunch.yml index 4474589..6a13fb0 100644 --- a/.github/workflows/reminder_Weekly_Bagel_Brunch.yml +++ b/.github/workflows/reminder_Weekly_Bagel_Brunch.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Weekly_Bagel_Brunch.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Weekly_Wednesday_Woccoms.yml b/.github/workflows/reminder_Weekly_Wednesday_Woccoms.yml index dd01806..70d7e29 100644 --- a/.github/workflows/reminder_Weekly_Wednesday_Woccoms.yml +++ b/.github/workflows/reminder_Weekly_Wednesday_Woccoms.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Weekly_Wednesday_Woccoms.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/.github/workflows/reminder_Winter_Holiday_Party.yml b/.github/workflows/reminder_Winter_Holiday_Party.yml index d3a77b3..ba0f8db 100644 --- a/.github/workflows/reminder_Winter_Holiday_Party.yml +++ b/.github/workflows/reminder_Winter_Holiday_Party.yml @@ -17,3 +17,5 @@ jobs: run: pip install pandas markdown - name: Run email script run: python scripts/send_email_Winter_Holiday_Party.py + env: + GMAIL_PASSWORD: ${{ secrets.GMAIL_PASSWORD }} diff --git a/scripts/send_email_Game_Night.py b/scripts/send_email_Game_Night.py index eb2f21c..0362f6a 100644 --- a/scripts/send_email_Game_Night.py +++ b/scripts/send_email_Game_Night.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Hike_to_Gile_Mountain.py b/scripts/send_email_Hike_to_Gile_Mountain.py index c0bad40..edc9333 100644 --- a/scripts/send_email_Hike_to_Gile_Mountain.py +++ b/scripts/send_email_Hike_to_Gile_Mountain.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Hikes_with_The_Chair.py b/scripts/send_email_Hikes_with_The_Chair.py index 33c5c8e..1ebb959 100644 --- a/scripts/send_email_Hikes_with_The_Chair.py +++ b/scripts/send_email_Hikes_with_The_Chair.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py b/scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py index 3aa38e3..da23b07 100644 --- a/scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py +++ b/scripts/send_email_Mid-term_Wine_and_Cheese_Gathering.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Pumpkin_Carving.py b/scripts/send_email_Pumpkin_Carving.py index 9f937a0..ade3106 100644 --- a/scripts/send_email_Pumpkin_Carving.py +++ b/scripts/send_email_Pumpkin_Carving.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Research_Extravaganza.py b/scripts/send_email_Research_Extravaganza.py index f7d340b..3b213d4 100644 --- a/scripts/send_email_Research_Extravaganza.py +++ b/scripts/send_email_Research_Extravaganza.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Weekly_Bagel_Brunch.py b/scripts/send_email_Weekly_Bagel_Brunch.py index 9ffa0cf..71f0598 100644 --- a/scripts/send_email_Weekly_Bagel_Brunch.py +++ b/scripts/send_email_Weekly_Bagel_Brunch.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Weekly_Wednesday_Woccoms.py b/scripts/send_email_Weekly_Wednesday_Woccoms.py index 569058c..e58b823 100644 --- a/scripts/send_email_Weekly_Wednesday_Woccoms.py +++ b/scripts/send_email_Weekly_Wednesday_Woccoms.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit() diff --git a/scripts/send_email_Winter_Holiday_Party.py b/scripts/send_email_Winter_Holiday_Party.py index 89607ab..b8d2d9a 100644 --- a/scripts/send_email_Winter_Holiday_Party.py +++ b/scripts/send_email_Winter_Holiday_Party.py @@ -4,6 +4,7 @@ from email.mime.multipart import MIMEMultipart from email.mime.text import MIMEText import markdown +import os # Load email addresses emails_df = pd.read_csv('email_addresses.csv') @@ -41,7 +42,7 @@ # Send email server = smtplib.SMTP('smtp.gmail.com', 587) server.starttls() -server.login(sender_email, "${ secrets.GMAIL_PASSWORD }") +server.login(sender_email, os.getenv("GMAIL_PASSWORD")) text = msg.as_string() server.sendmail(sender_email, admin_emails + organizer_emails, text) server.quit()