-
Notifications
You must be signed in to change notification settings - Fork 197
41 lines (39 loc) · 1.16 KB
/
vhs.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
name: Generate gifs from VHS tapes
on:
workflow_dispatch:
pull_request:
paths:
- docs/tapes/*.tape
jobs:
vhs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v5
with:
python-version: 3.12
cache: pip
- name: Setup Kapitan
run: |
python -m pip install --upgrade pip
pip install git+https://github.com/kapicorp/kapitan@init-with-copier
- name: setup VHS
run: |
go install github.com/charmbracelet/vhs@latest
- name: run VHS
run: |
# shellcheck disable=SC2086
for file in docs/tapes/*.tape
do
filename="$(basename ${file})"
vhs "${file}" -o "docs/vhs/gifs/${filename%%.tape}.gif"
done
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Update generated VHS GIF
commit_user_name: vhs-action 📼
commit_user_email: actions@github.com
commit_author: vhs-action 📼 <actions@github.com>
file_pattern: '*.gif'