Skip to content

Commit

Permalink
Add event reminder workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Jul 18, 2024
1 parent bb8b442 commit 1f34d6a
Show file tree
Hide file tree
Showing 9 changed files with 312 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/reminder_Game_Night.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Game Night Reminder\"\n\n\
msg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nGame Night \U0001F3B2\n\nJoin us for a fun\
\ Game Night! Bring your favorite games and enjoy an evening of laughter and\
\ friendly competition.\n\n**Date:** Wednesday, November 6\n**Time:** TBD\n\
**Location:** TBD\n\nLooking forward to a fun night!\n\nBest,\nThe PBS Social\
\ Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\n\
server = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\nserver.login(sender_email,\
\ \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email,\
\ receiver_email.split(\", \") + cc_email.split(\", \"), text)\nserver.quit()\n\
\nEOF"
name: Reminder for Game Night
'on':
schedule:
- cron: 0 0 5 11 *
35 changes: 35 additions & 0 deletions .github/workflows/reminder_Hike_to_Gile_Mountain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Hike to Gile Mountain Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nHike to Gile Mountain \U0001F332\u26F0\uFE0F\
\U0001F332\U0001F332\n\nEnjoy a beautiful hike to Gile Mountain with the PBS\
\ community. It's a great way to enjoy the outdoors and connect with colleagues.\n\
\n**Date:** First two weeks of term\n**Time:** TBD\n**Location:** Meet at\
\ Moore Hall then carpool to Gile Mountain\n\nHappy hiking!\n\nBest,\nThe\
\ PBS Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\
\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\nserver.login(sender_email,\
\ \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email,\
\ receiver_email.split(\", \") + cc_email.split(\", \"), text)\nserver.quit()\n\
\nEOF"
name: Reminder for Hike to Gile Mountain
'on':
schedule:
- cron: 0 0 20 9 *
34 changes: 34 additions & 0 deletions .github/workflows/reminder_Hikes_with_The_Chair.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Hikes with The Chair Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nHikes with The Chair \U0001FA91\U0001F6B6\
\U0001F6B6\U0001F6B6\n\nJoin us for weekend hikes with The Chair. Enjoy nature\
\ and good company as we explore local trails.\n\n**Date:** Weekends throughout\
\ the term\n**Time:** TBD\n**Location:** Meet at Moore Hall then head to the\
\ trail\n\nHappy hiking!\n\nBest,\nThe PBS Social Committee\n\n\n===END===\n\
\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\nserver = smtplib.SMTP('smtp.gmail.com',\
\ 587)\nserver.starttls()\nserver.login(sender_email, \"${{ secrets.GMAIL_PASSWORD\
\ }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email, receiver_email.split(\"\
, \") + cc_email.split(\", \"), text)\nserver.quit()\n\nEOF"
name: Reminder for Hikes with The Chair
'on':
schedule:
- cron: 0 0 27 9 *
35 changes: 35 additions & 0 deletions .github/workflows/reminder_Mid-term_Wine_and_Cheese_Gathering.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Mid-term Wine and Cheese Gathering\
\ Reminder\"\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody\
\ = \"\"\"Hi Michelle,\n\nCould you please send out the announcement below\
\ to the department?\n\nThanks very much!\n\nBest,\nThe PBS Social Committee\n\
\n===BEGIN===\nPBS Social Committee Calendar of Events\n\nMid-term Wine and\
\ Cheese Gathering \U0001F377\U0001F9C0\n\nCelebrate mid-term with a relaxing\
\ wine and cheese gathering. Open to all in the PBS community and loved ones.\n\
\n**Date:** Monday, October 21\n**Time:** 4:00 \u2013 5:30 PM\n**Location:**\
\ Bucci Lounge, Moore Hall, 2nd floor\n\nWe look forward to your company!\n\
\nBest,\nThe PBS Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body,\
\ 'plain'))\n\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\n\
server.login(sender_email, \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\n\
server.sendmail(sender_email, receiver_email.split(\", \") + cc_email.split(\"\
, \"), text)\nserver.quit()\n\nEOF"
name: Reminder for Mid-term Wine and Cheese Gathering
'on':
schedule:
- cron: 0 0 20 10 *
34 changes: 34 additions & 0 deletions .github/workflows/reminder_Pumpkin_Carving.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Pumpkin Carving Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nPumpkin Carving \U0001F383\U0001F47B\U0001F9DF\
\U0001F9DA\U0001F9B8\n\nGet into the Halloween spirit with our Pumpkin Carving\
\ event. All materials provided. Open to all in the PBS community.\n\n**Date:**\
\ Wednesday, October 30\n**Time:** TBD\n**Location:** TBD\n\nLet's get creative!\n\
\nBest,\nThe PBS Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body,\
\ 'plain'))\n\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\n\
server.login(sender_email, \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\n\
server.sendmail(sender_email, receiver_email.split(\", \") + cc_email.split(\"\
, \"), text)\nserver.quit()\n\nEOF"
name: Reminder for Pumpkin Carving
'on':
schedule:
- cron: 0 0 29 10 *
35 changes: 35 additions & 0 deletions .github/workflows/reminder_Research_Extravaganza.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Research Extravaganza Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nResearch Extravaganza \U0001F9D1\u200D\U0001F52C\
\U0001F9D1\u200D\U0001F3EB\U0001F9E0\U0001F52C\U0001F973\n\nJoin us for the\
\ Research Extravaganza, an exciting kickoff to the term! Meet new folks,\
\ welcome back returning members, and enjoy introductions from the community.\n\
\n**Date:** Friday, September 20\n**Time:** TBD\n**Location:** TBD\n\nWe look\
\ forward to seeing you there!\n\nBest,\nThe PBS Social Committee\n\n\n===END===\n\
\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\nserver = smtplib.SMTP('smtp.gmail.com',\
\ 587)\nserver.starttls()\nserver.login(sender_email, \"${{ secrets.GMAIL_PASSWORD\
\ }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email, receiver_email.split(\"\
, \") + cc_email.split(\", \"), text)\nserver.quit()\n\nEOF"
name: Reminder for Research Extravaganza
'on':
schedule:
- cron: 0 0 19 9 *
35 changes: 35 additions & 0 deletions .github/workflows/reminder_Weekly_Bagel_Brunch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Weekly Bagel Brunch Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nWeekly Bagel Brunch \U0001F96F\u2615\uFE0F\
\U0001F375\n\nHelp yourself to a variety of bagels, cream cheese, and conversations\
\ with colleagues. Please bring your own coffee, tea, and conversation.\n\n\
**Date:** Fridays throughout the term\n**Time:** 10:00 \u2013 11:00 AM\n**Location:**\
\ Bucci Lounge, Moore Hall, 2nd floor\n\nSee you there!\n\nBest,\nThe PBS\
\ Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\
\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\nserver.login(sender_email,\
\ \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email,\
\ receiver_email.split(\", \") + cc_email.split(\", \"), text)\nserver.quit()\n\
\nEOF"
name: Reminder for Weekly Bagel Brunch
'on':
schedule:
- cron: 0 0 26 9 *
36 changes: 36 additions & 0 deletions .github/workflows/reminder_Weekly_Wednesday_Woccoms.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Weekly Wednesday Woccoms Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nWeekly Wednesday Woccoms \U0001F6B6\U0001F332\
\U0001F333\n\nThat computer screen can wait! Step away from your desk and\
\ join us for a walk around Occom Pond. Extend your lab meeting, problem-solve,\
\ or simply enjoy the fresh air with colleagues.\n\n**Date:** Wednesdays throughout\
\ the term\n**Time:** 2:30 \u2013 3:30 PM\n**Location:** Meet in Moore lobby\
\ then walk around Occom Pond\n\nLooking forward to walking with you!\n\n\
Best,\nThe PBS Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body,\
\ 'plain'))\n\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\n\
server.login(sender_email, \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\n\
server.sendmail(sender_email, receiver_email.split(\", \") + cc_email.split(\"\
, \"), text)\nserver.quit()\n\nEOF"
name: Reminder for Weekly Wednesday Woccoms
'on':
schedule:
- cron: 0 0 24 9 *
34 changes: 34 additions & 0 deletions .github/workflows/reminder_Winter_Holiday_Party.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
jobs:
send_email:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.x
- name: Install dependencies
run: pip install smtplib email
- name: Send email
run: "python - <<EOF\nimport smtplib\nfrom email.mime.multipart import MIMEMultipart\n\
from email.mime.text import MIMEText\n\nsender_email = \"[email protected]\"\
\nreceiver_email = \"[email protected]\"\ncc_email = \"[email protected],\
\ [email protected]\"\nsubject = \"Winter Holiday Party Reminder\"\
\n\nmsg = MIMEMultipart()\nmsg['From'] = sender_email\nmsg['To'] = receiver_email\n\
msg['Cc'] = cc_email\nmsg['Subject'] = subject\n\nbody = \"\"\"Hi Michelle,\n\
\nCould you please send out the announcement below to the department?\n\n\
Thanks very much!\n\nBest,\nThe PBS Social Committee\n\n===BEGIN===\nPBS Social\
\ Committee Calendar of Events\n\nWinter Holiday Party \U0001F389\u2744\uFE0F\
\u26C4\U0001F939\n\nJoin us for our Winter Holiday Party! Celebrate the season\
\ with colleagues, friends, and family.\n\n**Date:** Mid-December\n**Time:**\
\ TBD\n**Location:** TBD\n\nLet's spread some holiday cheer!\n\nBest,\nThe\
\ PBS Social Committee\n\n\n===END===\n\"\"\"\nmsg.attach(MIMEText(body, 'plain'))\n\
\nserver = smtplib.SMTP('smtp.gmail.com', 587)\nserver.starttls()\nserver.login(sender_email,\
\ \"${{ secrets.GMAIL_PASSWORD }}\")\ntext = msg.as_string()\nserver.sendmail(sender_email,\
\ receiver_email.split(\", \") + cc_email.split(\", \"), text)\nserver.quit()\n\
\nEOF"
name: Reminder for Winter Holiday Party
'on':
schedule:
- cron: 0 0 14 12 *

0 comments on commit 1f34d6a

Please sign in to comment.