From 4a4e65ef3fc53c50f1232512f60ce8b41b702365 Mon Sep 17 00:00:00 2001 From: Little Monkey <106759534+PlaceReporter99@users.noreply.github.com> Date: Sat, 31 Aug 2024 14:24:03 +0100 Subject: [PATCH] Create wakeup.yaml Signed-off-by: Little Monkey <106759534+PlaceReporter99@users.noreply.github.com> --- .github/workflows/wakeup.yaml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/wakeup.yaml diff --git a/.github/workflows/wakeup.yaml b/.github/workflows/wakeup.yaml new file mode 100644 index 0000000..a8884f6 --- /dev/null +++ b/.github/workflows/wakeup.yaml @@ -0,0 +1,24 @@ +name: Send message + +on: + schedule: + - cron: "0 */1 * * *" +jobs: + send_message: + runs-on: ubuntu-latest + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Install required packages + run: | + python3 -m pip install --upgrade pip + python3 -m pip install -r requirements.txt + + - name: Send Message + run: python3 sendmsg.py + env: + email: ${{ secrets.BOT_EMAIL }} + password: ${{ secrets.BOT_PASSWORD }} + message: "Wake up, it's antifreeze time!" + room: '154629'