Daily Slack Greeting #68
This file contains hidden or 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 Slack Greeting | |
| on: | |
| schedule: | |
| - cron: "30 13 * * *" # Runs daily at 9:30 AM Eastern (adjust as needed) | |
| workflow_dispatch: # allows manual run from the UI | |
| jobs: | |
| send-greeting: | |
| runs-on: ubuntu-latest | |
| env: | |
| DAVEBOT_SLACKHOOK: ${{ secrets.DAVEBOT_SLACKHOOK }} | |
| steps: | |
| - name: Checkout repo | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.x" | |
| - name: Install dependencies | |
| run: pip install holidays pyyaml requests | |
| - name: Send Slack Greeting | |
| run: python3 davebot.py | |