Daily update #949
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: Daily update | |
on: | |
workflow_dispatch: | |
schedule: | |
# At the start of every 4th hour - https://cron.help/#0_*/4_*_*_* | |
- cron: 0 */4 * * * | |
push: | |
branches: | |
- main | |
permissions: | |
contents: write | |
jobs: | |
update: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Pull in blog posts | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
comment_tag_name: BLOG-POST-LIST | |
feed_list: https://wicksipedia.com/feed.xml | |
template: | | |
$newline | |
#### [$title]($url) | |
$date - *$description* | |
date_format: "d mmm yyyy" | |
commit_message: 'Updated with the latest blog posts' | |
committer_username: ${{ github.repository_owner }} | |
committer_email: ${{ secrets.committer_email }} | |
- name: Pull in youtube videos | |
uses: gautamkrishnar/blog-post-workflow@v1 | |
with: | |
comment_tag_name: YOUTUBE-VIDEO-LIST | |
feed_list: "https://www.youtube.com/feeds/videos.xml?channel_id=UCz-9w1yxZVXofthsmh77G1w,https://www.youtube.com/feeds/videos.xml?playlist_id=PLpiOR7CBNvlouByIBdQP_YiGkrYqKCWgP&si=7v_2qwjkJfUGB1_2" | |
custom_tags: "channelId/yt:channelId/,videoId/yt:videoId/" | |
template: | | |
$newline | |
<tr> | |
<td><a href="$url"><img width="140px" src="http://img.youtube.com/vi/$videoId/maxresdefault.jpg"></a></td> | |
<td><a href="$url">$title</a><br/>$date</td> | |
</tr> | |
date_format: "d mmm yyyy" | |
commit_message: 'Updated with the latest youtube videos' | |
committer_username: ${{ github.repository_owner }} | |
committer_email: ${{ secrets.committer_email }} |