|
1 |
| -name:Generate Blog List |
| 1 | +name:Update blog posts |
2 | 2 | on:
|
3 | 3 | push:
|
| 4 | +branches:["main"] |
| 5 | +workflow_dispatch: |
4 | 6 | schedule:
|
5 |
| - -cron:"0 */1 * * *" |
| 7 | +# Runs every hour |
| 8 | + -cron:'0 * * * *' |
| 9 | + |
| 10 | + |
6 | 11 | jobs:
|
7 |
| -run: |
| 12 | +update-readme-with-blog: |
| 13 | +name:Update this repo's README with latest blog posts |
8 | 14 | runs-on:ubuntu-latest
|
9 |
| -name:Fetch and Generate Blog Posts |
10 | 15 | steps:
|
11 | 16 | -name:Checkout
|
12 |
| -uses:actions/checkout@v3 |
13 |
| - -name:GitHub Readme Blog Post Action |
14 |
| -uses:ErrorGamer2000/github-readme-blog-post-action@v1 |
| 17 | + -uses:actions/checkout@v2 |
| 18 | + -uses:gautamkrishnar/blog-post-workflow@master |
15 | 19 | with:
|
16 |
| -feed_urls:"https://musing.vercel.app/feed.xml" |
17 |
| -max_posts_per_url:5 |
18 |
| -position_indicator:"post-list" |
19 |
| -locale:"en-US" |
20 |
| -time_zone:"America/Denver" |
21 |
| -output_dir:"generated_files" |
22 |
| - -name:Commit changed files |
23 |
| -uses:stefanzweifel/git-auto-commit-action@v4 |
24 |
| -with: |
25 |
| -commit_message:Save generated content |
26 |
| -skip_checkout:true |
| 20 | +comment_tag_name:BLOG |
| 21 | +feed_list:"https://musing.vercel.app/feed.xml" |