Skip to content

modified: .github/workflows/recent-posts.yml #62

modified: .github/workflows/recent-posts.yml

modified: .github/workflows/recent-posts.yml #62

Workflow file for this run

name: "Update README with most recent blog post"
on: push
permissions:
contents: write
jobs:
recent_post_job:
runs-on: ubuntu-latest
name: Recent Post
steps:
- name: Checkout repo
uses: actions/checkout@v4
- name: Recent post action
uses: "it176131/it176131.github.io/.github/actions/recent-posts@recent-posts"
with:
readme: "./README.md"
num-entries: 5
- name: Commit README
run: |
git config user.email [email protected]
git config user.name github-actions
has_diff=$(git diff main --name-only -- README.md)
if [ $has_diff ]; then
git add README.md
git commit -m "Synced and updated with most recent it176131.github.io blog post"
git push
fi