Skip to content

Adds tapes

Adds tapes #4

Workflow file for this run

name: Generate gifs from VHS tapes
on:
pull_request:
paths:
- docs/tapes/*.tape
push:
branches:
- master
- test-vhs
paths:
- docs/tapes/*.tape
jobs:
generate-matrix:
name: Generate job matrices
runs-on: ubuntu-latest
# don't forget to declare outputs here!
outputs:
vhs-files: ${{ steps.vhs-files.outputs.matrix }}
steps:
- name: Generate matrix | VHS Files
id: vhs-files
uses: hellofresh/action-changed-files@v3
with:
pattern: (?P<path>docs/tapes/(?P<tape>.+)\.tape)
vhs:
needs: [ generate-matrix ]
runs-on: ubuntu-latest
strategy:
matrix: ${{ fromJson(needs.generate-matrix.outputs.vhs-files) }}
if: ${{ fromJson(needs.generate-matrix.outputs.vhs-files).include[0] }} # skip if the matrix is empty!
steps:
- uses: actions/checkout@v3
- uses: charmbracelet/vhs-action@v2.1.0
with:
path: ${{ matrix.path }}
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
commit_message: Update generated VHS GIF
branch: main
commit_user_name: vhs-action 📼
commit_user_email: actions@github.com
commit_author: vhs-action 📼 <actions@github.com>
file_pattern: '*.gif'