Bot Instance Stop #70
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: Bot Instance Stop | |
on: | |
schedule: | |
- cron: 0 17 * * * | |
workflow_dispatch: | |
jobs: | |
todaywhat_bot_stop: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Configure `.env.aws` | |
run: | | |
touch .env.aws | |
echo "${{ secrets.AWS_ENV }}" >> .env.aws | |
- name: Install Python dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Run Python script | |
run: python ec2_stop.py |