Latest blog post workflow #8824
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 this repo's README with latest blog posts | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull in BrightDigit posts | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
feed_list: "https://brightdigit.com/feed.rss" | |
readme_path: "./profile/README.md" | |
- name: Pull in EmpowerApps episodes | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
feed_list: "https://feeds.transistor.fm/empowerapps-show" | |
comment_tag_name: "EMPOWERAPPS-SHOW" | |
readme_path: "./profile/README.md" | |
commit_message: "Updating podcast episodes" | |
- name: Pull in Newsletters | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
feed_list: "https://us12.campaign-archive.com/feed?u=cb3bba007ed171091f55c47f0&id=584d0d5c40" | |
comment_tag_name: "NEWSLETTER-LIST" | |
max_post_count: 3 | |
readme_path: "./profile/README.md" | |
commit_message: "Updating newsletter issues" | |
- name: Pull in Latest Youtube Video | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
feed_list: "https://www.youtube.com/feeds/videos.xml?playlist_id=PLmpJxPaZbSnBvpnEdaX78wSM1d9BVvMfI" | |
comment_tag_name: "YOUTUBE-VIDEO" | |
max_post_count: 1 | |
readme_path: "./profile/README.md" | |
custom_tags: "channelId/yt:channelId/,videoId/yt:videoId/" | |
date_format: "mmmm d" | |
template: "$newline### [$title ($date)](http://www.youtube.com/watch?v=$videoId)$newline$newline[![$title](http://img.youtube.com/vi/$videoId/maxresdefault.jpg)](http://www.youtube.com/watch?v=$videoId \"$title\")$newline" | |
commit_message: "Updating latest Youtube Videos" | |