.github/workflows/cron.yaml #272
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
on: | |
schedule: | |
- cron: "0 2 * * *" | |
# manual run | |
workflow_dispatch: | |
inputs: | |
jobs: | |
glados-sign: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Repo Directory | |
uses: actions/checkout@v3 | |
- name: Set Up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Set Env | |
run: | | |
pip install yagmail requests | |
- name: Run | |
env: | |
EMAIL: ${{ secrets.EMAIL }} | |
PASSWORD: ${{ secrets.PASSWORD }} | |
run: | | |
cd scripts | |
python glados-signin.py | |