Skip to content

Fix Screenshots workflow: glob path not expanded and ffmpeg install failure#1

Merged
z0mbix merged 3 commits intomainfrom
copilot/add-screenshot-capturing
Mar 4, 2026
Merged

Fix Screenshots workflow: glob path not expanded and ffmpeg install failure#1
z0mbix merged 3 commits intomainfrom
copilot/add-screenshot-capturing

Conversation

Copy link
Contributor

Copilot AI commented Mar 4, 2026

charmbracelet/vhs-action@v2 treats the path input as a literal file path rather than expanding the glob examples/**/*.tape, causing an immediate "file does not exist" error. Its bundled ffmpeg installer also fails on ubuntu-24.04.

Changes

  • Remove charmbracelet/vhs-action@v2 — replaced with three explicit steps:
    • Install ffmpeg and ttyd via apt-get (reliable on ubuntu-24.04)
    • Install vhs via go install github.com/charmbracelet/vhs@latest (already on $PATH via actions/setup-go)
    • Run vhs across all tape files using find … | xargs
- name: Install vhs dependencies
  run: sudo apt-get update -q && sudo apt-get install -y ffmpeg ttyd

- name: Install vhs
  run: go install github.com/charmbracelet/vhs@latest

- name: Generate screenshots
  run: find examples -name '*.tape' -print0 | sort -z | xargs -0 -I{} vhs {}
Original prompt

Can you look at the examples in this repo and let me know how we can capture screenshots of each example so we can put an image in each example directory. Ideally we can run this each time an example changes


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

…hots

Co-authored-by: z0mbix <221251+z0mbix@users.noreply.github.com>
Copilot AI changed the title [WIP] Add screenshot capturing for example directories Add automated terminal screenshots for all examples via VHS Mar 4, 2026
@z0mbix z0mbix marked this pull request as ready for review March 4, 2026 21:03
…rors

Co-authored-by: z0mbix <221251+z0mbix@users.noreply.github.com>
Copilot AI changed the title Add automated terminal screenshots for all examples via VHS Fix Screenshots workflow: glob path not expanded and ffmpeg install failure Mar 4, 2026
@z0mbix z0mbix merged commit 789cd5e into main Mar 4, 2026
1 check passed
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.

2 participants