1
- name :Latest blogpost workflow
1
+ name :Lates blogflows
2
2
on :
3
- schedule :# Run workflow automatically
4
- -cron :" 0 * * * *" # Runs every hour, on the hour
5
- workflow_dispatch :# Run workflow manually (without waiting for the cron to be called), through the GitHub Actions Workflow page directly
6
-
3
+ push :
4
+ schedule :
5
+ -cron :" 0 */6 * * *"
7
6
jobs :
8
- update-readme-with-blog :
9
- name :Update this repo's README with latest blog posts
7
+ run :
10
8
runs-on :ubuntu-latest
9
+ name :Update the example on the README
11
10
steps :
12
- uses :actions/checkout@v2
13
- uses :gautamkrishnar/blog-post-workflow@1.7.4
11
+ -name :Checkout
12
+ uses :actions/checkout@v3
13
+ -name :Generate
14
+ uses :./
14
15
with :
15
- max_post_count :" 4"
16
- feed_list :" https://musing.vercel.app/feed.xml"
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