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 8f8cd42 commit 0b414f3
Show file tree
Hide file tree
Showing 9 changed files with 373 additions and 0 deletions.
39 changes: 39 additions & 0 deletions .github/workflows/reminder_Game Night.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Reminder for Game Night
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-11-05T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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,\n\
The PBS Social Committee\n\n\n===END===\n\"\"\"\nhtml = \"\"\"<html><body><p>PBS\
\ Social Committee Calendar of Events</p>\n<p>Game Night \U0001F3B2</p>\n\
<p>Join us for a fun Game Night! Bring your favorite games and enjoy an evening\
\ of laughter and friendly competition.</p>\n<p><strong>Date:</strong> Wednesday,\
\ November 6\n<strong>Time:</strong> TBD\n<strong>Location:</strong> TBD</p>\n\
<p>Looking forward to a fun night!</p>\n<p>Best,\nThe PBS Social Committee</p></body></html>\"\
\"\"\n\npart1 = MIMEText(text, \"plain\")\npart2 = MIMEText(html, \"html\"\
)\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
42 changes: 42 additions & 0 deletions .github/workflows/reminder_Hike to Gile Mountain.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Reminder for Hike to Gile Mountain
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-09-20T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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\n\
Happy hiking!\n\nBest,\nThe PBS Social Committee\n\n\n===END===\n\"\"\"\n\
html = \"\"\"<html><body><p>PBS Social Committee Calendar of Events</p>\n\
<p>Hike to Gile Mountain \U0001F332\u26F0\uFE0F\U0001F332\U0001F332</p>\n\
<p>Enjoy a beautiful hike to Gile Mountain with the PBS community. It's a\
\ great way to enjoy the outdoors and connect with colleagues.</p>\n<p><strong>Date:</strong>\
\ First two weeks of term\n<strong>Time:</strong> TBD\n<strong>Location:</strong>\
\ Meet at Moore Hall then carpool to Gile Mountain</p>\n<p>Happy hiking!</p>\n\
<p>Best,\nThe PBS Social Committee</p></body></html>\"\"\"\n\npart1 = MIMEText(text,\
\ \"plain\")\npart2 = MIMEText(html, \"html\")\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
41 changes: 41 additions & 0 deletions .github/workflows/reminder_Hikes with The Chair.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Reminder for Hikes with The Chair
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-09-27T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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\"\"\"\nhtml = \"\"\"<html><body><p>PBS\
\ Social Committee Calendar of Events</p>\n<p>Hikes with The Chair \U0001FA91\
\U0001F6B6\U0001F6B6\U0001F6B6</p>\n<p>Join us for weekend hikes with The\
\ Chair. Enjoy nature and good company as we explore local trails.</p>\n<p><strong>Date:</strong>\
\ Weekends throughout the term\n<strong>Time:</strong> TBD\n<strong>Location:</strong>\
\ Meet at Moore Hall then head to the trail</p>\n<p>Happy hiking!</p>\n<p>Best,\n\
The PBS Social Committee</p></body></html>\"\"\"\n\npart1 = MIMEText(text,\
\ \"plain\")\npart2 = MIMEText(html, \"html\")\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
42 changes: 42 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,42 @@
name: Reminder for Mid-term Wine and Cheese Gathering
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-10-20T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\n\
msg['To'] = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\
\ntext = \"\"\"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\"\"\"\nhtml = \"\"\"<html><body><p>PBS\
\ Social Committee Calendar of Events</p>\n<p>Mid-term Wine and Cheese Gathering\
\ \U0001F377\U0001F9C0</p>\n<p>Celebrate mid-term with a relaxing wine and\
\ cheese gathering. Open to all in the PBS community and loved ones.</p>\n\
<p><strong>Date:</strong> Monday, October 21\n<strong>Time:</strong> 4:00\
\ \u2013 5:30 PM\n<strong>Location:</strong> Bucci Lounge, Moore Hall, 2nd\
\ floor</p>\n<p>We look forward to your company!</p>\n<p>Best,\nThe PBS Social\
\ Committee</p></body></html>\"\"\"\n\npart1 = MIMEText(text, \"plain\")\n\
part2 = MIMEText(html, \"html\")\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
40 changes: 40 additions & 0 deletions .github/workflows/reminder_Pumpkin Carving.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Reminder for Pumpkin Carving
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-10-29T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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\"\"\"\nhtml = \"\"\"<html><body><p>PBS Social Committee Calendar\
\ of Events</p>\n<p>Pumpkin Carving \U0001F383\U0001F47B\U0001F9DF\U0001F9DA\
\U0001F9B8</p>\n<p>Get into the Halloween spirit with our Pumpkin Carving\
\ event. All materials provided. Open to all in the PBS community.</p>\n<p><strong>Date:</strong>\
\ Wednesday, October 30\n<strong>Time:</strong> TBD\n<strong>Location:</strong>\
\ TBD</p>\n<p>Let's get creative!</p>\n<p>Best,\nThe PBS Social Committee</p></body></html>\"\
\"\"\n\npart1 = MIMEText(text, \"plain\")\npart2 = MIMEText(html, \"html\"\
)\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
43 changes: 43 additions & 0 deletions .github/workflows/reminder_Research Extravaganza.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Reminder for Research Extravaganza
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-09-19T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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\"\"\"\nhtml = \"\"\"<html><body><p>PBS Social Committee Calendar\
\ of Events</p>\n<p>Research Extravaganza \U0001F9D1\u200D\U0001F52C\U0001F9D1\
\u200D\U0001F3EB\U0001F9E0\U0001F52C\U0001F973</p>\n<p>Join us for the Research\
\ Extravaganza, an exciting kickoff to the term! Meet new folks, welcome back\
\ returning members, and enjoy introductions from the community.</p>\n<p><strong>Date:</strong>\
\ Friday, September 20\n<strong>Time:</strong> TBD\n<strong>Location:</strong>\
\ TBD</p>\n<p>We look forward to seeing you there!</p>\n<p>Best,\nThe PBS\
\ Social Committee</p></body></html>\"\"\"\n\npart1 = MIMEText(text, \"plain\"\
)\npart2 = MIMEText(html, \"html\")\n\nmsg.attach(part1)\nmsg.attach(part2)\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"
42 changes: 42 additions & 0 deletions .github/workflows/reminder_Weekly Bagel Brunch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Reminder for Weekly Bagel Brunch
'on':
workflow_dispatch: {}
schedule:
- cron: '2024-09-26T14:00:00Z'
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: Send email
run: "python - <<EOF\n\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(\"alternative\")\nmsg['From'] = sender_email\nmsg['To']\
\ = receiver_email\nmsg['Cc'] = cc_email\nmsg['Subject'] = subject\n\ntext\
\ = \"\"\"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\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\"\"\"\
\nhtml = \"\"\"<html><body><p>PBS Social Committee Calendar of Events</p>\n\
<p>Weekly Bagel Brunch \U0001F96F\u2615\uFE0F\U0001F375</p>\n<p>Help yourself\
\ to a variety of bagels, cream cheese, and conversations with colleagues.\
\ Please bring your own coffee, tea, and conversation.</p>\n<p><strong>Date:</strong>\
\ Fridays throughout the term\n<strong>Time:</strong> 10:00 \u2013 11:00 AM\n\
<strong>Location:</strong> Bucci Lounge, Moore Hall, 2nd floor</p>\n<p>See\
\ you there!</p>\n<p>Best,\nThe PBS Social Committee</p></body></html>\"\"\
\"\n\npart1 = MIMEText(text, \"plain\")\npart2 = MIMEText(html, \"html\")\n\
\nmsg.attach(part1)\nmsg.attach(part2)\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"
Loading

0 comments on commit 0b414f3

Please sign in to comment.