From 25d60e07fb97451c69fa2406b8d7b1d19750ea62 Mon Sep 17 00:00:00 2001 From: Chris Collier Date: Mon, 5 Aug 2024 21:23:42 +0100 Subject: [PATCH] feat: Generate artifacts from VHS and commit back --- .github/workflows/vhs.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/vhs.yml diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml new file mode 100644 index 0000000..c0eb2b2 --- /dev/null +++ b/.github/workflows/vhs.yml @@ -0,0 +1,28 @@ +name: vhs +on: + push: + paths: + - extra/tapes/*.tape + +jobs: + artifact-vhs: + name: "Create VHS artifact" + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: actions/checkout@v4 + - uses: dtolnay/rust-toolchain@stable + - uses: Swatinem/rust-cache@v2 + - uses: charmbracelet/vhs-action@v2 + + - name: Create artifact + run: extra/tapes/run_all.sh + + - name: Commit back changes + run: | + git add extra/*.gif + git config --global user.name "vhs-action" + git config --global user.email "actions@github.com" + git commit -m "Updated vhs [skip ci]" || true + git push