Skip to content

Commit

Permalink
CI: separate vhs workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
Kevin Miller committed Feb 22, 2024
1 parent 1b7a68a commit 540b888
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 7 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/vhs.yml → .github/workflows/vhs-deeper.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,35 @@
name: vhs
name: vhs-deeper

env:
EXAMPLE_NAME: deeper
permissions:
contents: write

on:
push:
paths:
- "**.tape"
- "**/$EXAMPLE_NAME/*.tape"
jobs:
vhs:
vhs-deeper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: charmbracelet/vhs-action@v1
env:
TERM: xterm-256color
with:
working-directory: "./examples/deeper/"
working-directory: "examples/$EXAMPLE_NAME"
path: "demo.tape"
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
working-directory: "./examples/deeper/"
commit_message: Generated `deeper` demo VHS GIF
working-directory: "examples/$EXAMPLE_NAME"
commit_message: Generated `$EXAMPLE_NAME` demo VHS GIF
branch: main
commit_user_name: vhs-action 📼
commit_user_email: [email protected]
commit_author: vhs-action 📼 <[email protected]>
file_pattern: "*.gif"


35 changes: 35 additions & 0 deletions .github/workflows/vhs-simple.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: vhs-deeper

env:
EXAMPLE_NAME: simple
permissions:
contents: write

on:
push:
paths:
- "**/$EXAMPLE_NAME/*.tape"
jobs:
vhs-deeper:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: charmbracelet/vhs-action@v1
env:
TERM: xterm-256color
with:
working-directory: "examples/$EXAMPLE_NAME"
path: "demo.tape"
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
working-directory: "examples/$EXAMPLE_NAME"
commit_message: Generated `$EXAMPLE_NAME` demo VHS GIF
branch: main
commit_user_name: vhs-action 📼
commit_user_email: [email protected]
commit_author: vhs-action 📼 <[email protected]>
file_pattern: "*.gif"


1 change: 0 additions & 1 deletion examples/deeper/demo.tape
Original file line number Diff line number Diff line change
Expand Up @@ -39,4 +39,3 @@ Enter
Sleep 2s
Enter
Sleep 4s

0 comments on commit 540b888

Please sign in to comment.