Skip to content

feat: restore YouTube auto-sync workflow#251

Merged
DavidKRK merged 10 commits into
gh-pagesfrom
copilot/249-finish-branch
May 31, 2026
Merged

feat: restore YouTube auto-sync workflow#251
DavidKRK merged 10 commits into
gh-pagesfrom
copilot/249-finish-branch

Conversation

@DavidKRK
Copy link
Copy Markdown
Owner

@DavidKRK DavidKRK commented May 31, 2026

The YouTube API → youtube-videos.json sync workflow was accidentally wiped during merge conflict resolution in PR #176 (ffb6a40), which chose the placeholder social-media-post.yml over the YouTube auto-sync version. Since April 15, no workflow has updated the JSON, so new videos stopped appearing on music.html.

Changes

  • New .github/workflows/youtube-sync.yml — dedicated workflow that:
    • Runs daily at 10:00 UTC (cron: '0 10 * * *') + workflow_dispatch
    • Calls YouTube Data API v3 to fetch the 6 latest videos from @DavidKRKofficial
    • Writes results to assets/data/youtube-videos.json and pushes only on diff
    • Exits cleanly (code 0) if YOUTUBE_API_KEY secret is absent

music.html already has JS that fetch()es the JSON at runtime, so updated videos will appear immediately after the sync commits.

Prerequisite: YOUTUBE_API_KEY must be set under Settings → Secrets and variables → Actions.

Copilot AI review requested due to automatic review settings May 31, 2026 19:44
@bolt-new-by-stackblitz
Copy link
Copy Markdown

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the .lighthouserc.json configuration file to enable warnings for 'bf-cache' and 'image-aspect-ratio' Lighthouse audits. There are no review comments to address, and I have no additional feedback to provide.

@github-actions
Copy link
Copy Markdown
Contributor

There is a problem with the Gemini CLI PR review. Please check the action logs for details.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adjusts website automation and audit configuration for the GitHub Pages site by relaxing two Lighthouse assertions and changing the YouTube section update workflow to invoke Python through a Bash heredoc.

Changes:

  • Adds Lighthouse warning-level overrides for bf-cache and image-aspect-ratio.
  • Replaces shell: python with shell: bash plus a quoted Python heredoc in the YouTube update workflow.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
.lighthouserc.json Adds two Lighthouse audit assertions as warnings.
.github/workflows/youtube-section-update.yml Runs the existing Python injection script from Bash via a quoted heredoc.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copilot AI changed the title Copilot/249 finish branch Stabilize PR 251 CI by fixing Gemini trust mode and aligning Lighthouse thresholds May 31, 2026
Copilot AI changed the title Stabilize PR 251 CI by fixing Gemini trust mode and aligning Lighthouse thresholds Replace external Buy Me a Coffee footer image with lightweight inline markup May 31, 2026
Copilot AI changed the title Replace external Buy Me a Coffee footer image with lightweight inline markup Scope PR #251 to Buy Me a Coffee footer refactor only May 31, 2026
Copilot AI changed the title Scope PR #251 to Buy Me a Coffee footer refactor only Stabilize PR automation by enabling trusted Gemini workspace and narrowing PR scope May 31, 2026
Copilot AI changed the title Stabilize PR automation by enabling trusted Gemini workspace and narrowing PR scope Improve footer accessibility semantics and keyboard focus across site pages May 31, 2026
Copilot stopped work on behalf of DavidKRK due to an error May 31, 2026 21:54
Copilot AI changed the title Improve footer accessibility semantics and keyboard focus across site pages feat: restore YouTube auto-sync workflow May 31, 2026
@DavidKRK DavidKRK merged commit 890a877 into gh-pages May 31, 2026
10 of 11 checks passed
@DavidKRK DavidKRK deleted the copilot/249-finish-branch branch May 31, 2026 22:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants