summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
authorBenjamin Chausse <benjamin@chausse.xyz>2024-11-23 23:16:03 -0500
committerBenjamin Chausse <benjamin@chausse.xyz>2024-11-23 23:16:03 -0500
commit79205a25b2289de10cfb3feb0e37653a85bd7d73 (patch)
tree12f3967a317af9eda9da7b9de47452ffaff88895 /.github/workflows
parent3c835408e4ab1d4b3c64998afb3da5198dcee6c6 (diff)
"Plagiarise" someone else's action
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/vhs.yml37
1 files changed, 37 insertions, 0 deletions
diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml
new file mode 100644
index 0000000..99815f0
--- /dev/null
+++ b/.github/workflows/vhs.yml
@@ -0,0 +1,37 @@
+---
+name: vhs
+on:
+ push:
+ branches: [master]
+ pull_request:
+ branches: [master]
+ workflow_dispatch:
+permissions:
+ contents: write
+jobs:
+ vhs:
+ runs-on: ubuntu-latest
+ steps:
+ - uses: actions/checkout@v4
+ - name: Set up Go
+ uses: actions/setup-go@v5
+ with:
+ go-version: stable
+ - name: Build
+ run: |
+ sudo go build -o /usr/local/bin/termpicker ./cmd/termpicker
+ - uses: charmbracelet/vhs-action@v2
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ path: vhs.tape
+ - uses: stefanzweifel/git-auto-commit-action@v5
+ 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'