Skip to content

Daily Build

Daily Build #28610

Workflow file for this run

name: Daily Build
# build and tweet
on:
push:
workflow_dispatch:
schedule:
- cron: '0 * * * *'
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repo
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5.1.0
with:
python-version: 3.8
- 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: Update README
run: |-
python 'python/get_blog_posts.py'
cat README.md
- name: Commit and push if README changed
run: |-
git diff
git config --global user.email "actions@users.noreply.github.com"
git config --global user.name "GitHub Actions"
git diff --quiet || (git add README.md && git commit -m "Updated README")
git push