Skip to content

Commit d5e5c3a

Browse files
authored
Create main.yml
1 parent 18367da commit d5e5c3a

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/main.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Latest blog post workflow
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+
permissions:
7+
contents: write # To write the generated contents to the readme
8+
9+
jobs:
10+
update-readme-with-blog:
11+
name: Update this repo's README with latest blog posts
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v4
16+
- name: Pull in stacktips.com posts
17+
uses: gautamkrishnar/blog-post-workflow@v1
18+
with:
19+
feed_list: "https://stacktips.com/rss/topics/spring-boot"
20+
max_post_count: 20
21+
# - name: Pull Youtube feed
22+
# uses: gautamkrishnar/blog-post-workflow@master
23+
# with:
24+
# feed_list: "https://www.youtube.com/feeds/videos.xml?channel_id=UCGydhB36jVvXIAU8HDlHovQ"
25+
# custom_tags: "channelId/yt:channelId/,videoId/yt:videoId/"
26+
# date_format: "mmm d, yyyy"
27+
# template: '<table style="border:none;"><tr style="border:none;"><td style="border:none;"><a href="$url"><img width="150px" src="http://img.youtube.com/vi/$videoId/maxresdefault.jpg"></a></td>$newline<td><a href="$url"><span font-size="16px">$title</span></a><br/>$date</td></tr></table>$newline'
28+
# max_post_count: 3
29+
# comment_tag_name: "YOUTUBE"

0 commit comments

Comments
 (0)