Skip to content

Commit

Permalink
use main.py and some other file name changes and code movement
Browse files Browse the repository at this point in the history
  • Loading branch information
PlaceReporter99 committed Apr 30, 2024
1 parent 170a458 commit d66b010
Show file tree
Hide file tree
Showing 5 changed files with 456 additions and 412 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
python3 -m pip install -r requirements.txt
- name: Send Message
run: python3 sendmsg.py
run: python3 sendrepoevent.py
env:
email: ${{ secrets.BOT_EMAIL }}
password: ${{ secrets.BOT_PASSWORD }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/sendmsg.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Post event into chat room

on:
workflow_dispatch:
inputs:
message:
description: 'Message'
required: true
room:
description: 'Room'
required: false
default: '152883'
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: ${{ inputs.message }}
room: ${{ inputs.room }}
Loading

0 comments on commit d66b010

Please sign in to comment.