Skip to content

Create polls on discord #13

Create polls on discord

Create polls on discord #13

name: 'Create polls on discord'
on:
schedule:
- cron: "0 3 1 * *"
workflow_dispatch:
env:
POETRY_VERSION: 1.5.1
python-version: 3.9
DISCORD_WEBHOOK_URL: ${{ secrets.DISCORD_WEBHOOK_URL }}
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
jobs:
create_polls:
name: Create polls for the next paper and the next date on discord
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Install poetry
run: pipx install poetry
- name: setup python ${{ env.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.python-version }}
cache: 'poetry'
- name: Install Dependencies
run: poetry install
- name: Create polls
run: |
poetry run python -m bot.discord create_polls