GitHub actions Zulip Bot #4533
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: GitHub actions Zulip Bot | |
on: | |
push: | |
branches: ["master"] | |
schedule: | |
- cron: "27 */1 * * *" | |
env: | |
ZULIP_API_KEY: ${{ secrets.ZULIP_API_KEY }} | |
ZULIP_EMAIL: ${{ secrets.ZULIP_EMAIL }} | |
ZULIP_SITE: ${{ secrets.ZULIP_SITE}} | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.x" | |
- name: Install dependencies | |
run: pip install zulip feedparser | |
- name: Run script | |
run: python main.py |