Repository navigation
Latest YouTube Videos #54
This file contains hidden or 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 YouTube Videos | |
| on: | |
| schedule: | |
| # Runs every hour, on the hour | |
| - cron: '0 2 27 * *' # Runs at 2:00 AM on the 27th of every month | |
| workflow_dispatch: | |
| jobs: | |
| update-readme-with-youtube: | |
| name: Update this repo's README with latest videos from YouTube | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v2 | |
| - uses: gautamkrishnar/blog-post-workflow@master | |
| with: | |
| comment_tag_name: "YOUTUBE" | |
| feed_list: "https://www.youtube.com/feeds/videos.xml?playlist_id=PLhCzsLE0NTmFRUpW7otaSpOg1tzaEPXCn" | |
| custom_tags: "channelId/yt:channelId/,videoId/yt:videoId/" | |
| date_format: "mmm d, yyyy" | |
| template: '<table><tr><td><a href="$url"><img width="140px" src="https://i.ytimg.com/vi/$videoId/mqdefault.jpg"></a></td>$newline<td><a href="$url">$title</a><br/>$date</td></tr></table>$newline' | |
| committer_email: "codewizard13@gmail.com" | |
| max_post_count: 3 |