-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Generate artifacts from VHS and commit back
- Loading branch information
1 parent
96d1251
commit 25d60e0
Showing
1 changed file
with
28 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 "[email protected]" | ||
git commit -m "Updated vhs [skip ci]" || true | ||
git push |