Run Script Every Night #58
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: "Run Script Every Night" | |
on: | |
schedule: | |
- cron: '00 01 * * *' | |
jobs: | |
Add_Movies: | |
name: "Add Popular Movies" | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: '3.12' | |
- name: 'Add Custom Python Packages' | |
run: 'pip install -r requirements.txt' | |
- name: 'Create env file' | |
run: | | |
echo "${{ secrets.ENV }}" > .env | |
- name: 'Run Script' | |
run: 'python main.py' |