Skip to content

Latest blog post workflow #6827

Latest blog post workflow

Latest blog post workflow #6827

name: Latest blog post workflow
on:
schedule: # Run workflow automatically
- cron: '0 * * * *' # Runs every hour, on the hour
workflow_dispatch: # Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly
permissions:
contents: write # To write the generated contents to the readme
jobs:
update-readme-with-blog:
name: Update README with latest blog posts
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Pull in kremilly.com
uses: gautamkrishnar/blog-post-workflow@v1
with:
max_post_count: 100
feed_list: "https://kremilly.com/rss"
template: "<li><a href='$url'><b>$title</b></a>: $description<br></li>"
- name: Pull in api.kremilly.com
uses: gautamkrishnar/blog-post-workflow@v1
with:
comment_tag_name: "DOCS-LIST"
commit_message: "Updated docs in kremilly.com"
disable_sort: true
max_post_count: 100
feed_list: "https://kremilly.com/rss/docs"
template: "<li><a href='$url'><b>$title</b></a><br></li>"
- name: Pull in crates.io
uses: gautamkrishnar/blog-post-workflow@v1
with:
comment_tag_name: "CRATES-LIST"
commit_message: "Updated docs in kremilly.com"
disable_sort: true
max_post_count: 100
feed_list: "https://kremilly.com/rss/crates"
template: "<li><a href='$url'><b>$title</b></a><br></li>"