GitHub Readme YouTube Cards #1353
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: GitHub Readme YouTube Cards | |
| on: | |
| schedule: | |
| # Runs every day at 12:00 | |
| - cron: "0 12 * * *" | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: DenverCoder1/github-readme-youtube-cards@main | |
| id: youtube-cards | |
| with: | |
| channel_id: UCipSxT7a3rn81vGLw9lqRkg | |
| comment_tag_name: EXAMPLE-YOUTUBE-CARDS | |
| youtube_api_key: ${{ secrets.YOUTUBE_API_KEY }} | |
| show_duration: true | |
| theme_context_light: '{ "background_color": "#ffffff", "title_color": "#24292f", "stats_color": "#57606a" }' | |
| theme_context_dark: '{ "background_color": "#0d1117", "title_color": "#ffffff", "stats_color": "#dedede" }' | |
| max_title_lines: 2 | |
| output_type: html | |
| - run: echo OUTPUT '${{ steps.youtube-cards.outputs.markdown }}' | |
| shell: bash |