-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d4a93f4
commit a310985
Showing
1 changed file
with
29 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Create a new post | ||
|
||
name: Generate Post | ||
|
||
on: | ||
schedule: | ||
- cron: 15 13 * * 2-6 # run at 9:15am EDT, Tues-Sat | ||
|
||
jobs: | ||
generate_post: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: '3.11' | ||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
python -m pip install yfinance requests | ||
- name: Make a new post | ||
run: | | ||
python post_generator.py | ||
- name: Publish new post | ||
run: | | ||
git add content/ | ||
git commit -m "New post for $(date)" | ||
git push |