Skip to content

Daily

Daily #32

Workflow file for this run

---
name: Daily
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out Repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.13.1
- uses: actions/cache@v4
name: Configure pip Caching
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install Python Dependencies
run: |
python -m pip install -r requirements.txt
- name: Processing Python Scripts
env:
OPEN_WEATHER_KEY: ${{ secrets.OPEN_WEATHER_KEY }}
run: |-
python '_python/stocks.py'
python '_python/countdown.py'
python '_python/task.py'
python '_python/forecast.py'
- name: Commit and push
run: |-
git diff
git config user.name "GitHub Action"
git config user.email "[email protected]"
git diff --quiet || (git add -A && git commit -m "new Morning Run")
git push