Skip to content

[Automated Updates] Refactor GitHub Actions for Generating Terminal GIFs #6

[Automated Updates] Refactor GitHub Actions for Generating Terminal GIFs

[Automated Updates] Refactor GitHub Actions for Generating Terminal GIFs #6

name: generate-terminal-gifs
on:
workflow_dispatch:
pull_request:
branches:
- main
paths:
- 'docs/vhs/*.tape'
jobs:
run:
strategy:
matrix:
tapes:
- 'docs/vhs/install.tape'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.x'
- uses: charmbracelet/vhs-action@v2
with:
path: ${{ matrix.tapes }}
- name: Generate PR with changes
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update terminal GIFs"
title: "Update terminal GIFs"
body: |
This PR was automatically generated by the STRUCT action.
base: "main"
assignees: "httpdss"
branch: repository-dispatch/update-${{ github.run_id }}
labels: |
automated-pr
path: docs/vhs