Publish new Post #47
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: Publish new Post | |
on: | |
schedule: | |
- cron: "30 10 * * *" | |
workflow_dispatch: | |
permissions: | |
contents: write | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.x' | |
- name: Run the Python script | |
run: python automate_blog.py | |
- name: Commit and push changes to main | |
uses: stefanzweifel/git-auto-commit-action@v5 | |
with: | |
commit_message: Update blog | |
commit_user_name: conradojuliosisnero | |
commit_user_email: conradojuliosisnero@gmail.com | |
commit_author: conradojuliosisnero |