Daily event announcement #1138
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: "Daily event announcement" | |
on: | |
schedule: | |
- cron: "0 8 * * *" | |
jobs: | |
announce: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.9' | |
- uses: actions/cache@v2 | |
with: | |
path: ~/.cache/pip | |
key: ${{ hashFiles('.github/announce/requirements.txt') }} | |
- run: pip install -r .github/announce/requirements.txt | |
- run: python .github/announce/main.py --daily | |
env: | |
DISCORD_URL: ${{ secrets.DISCORD_URL }} |