From 79205a25b2289de10cfb3feb0e37653a85bd7d73 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Sat, 23 Nov 2024 23:16:03 -0500 Subject: "Plagiarise" someone else's action --- .github/workflows/vhs.yml | 37 +++++++++++++++++++++++++++++++++++++ assets/demo.tape | 28 ---------------------------- vhs.tape | 28 ++++++++++++++++++++++++++++ 3 files changed, 65 insertions(+), 28 deletions(-) create mode 100644 .github/workflows/vhs.yml delete mode 100644 assets/demo.tape create mode 100644 vhs.tape 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 📼 + file_pattern: '*.gif' diff --git a/assets/demo.tape b/assets/demo.tape deleted file mode 100644 index a20672e..0000000 --- a/assets/demo.tape +++ /dev/null @@ -1,28 +0,0 @@ -Output ./assets/demo.gif - -Set FontSize 24 -Set Width 1000 -Set Height 500 -Set Shell zsh - -Type "./termpicker" -Enter -Sleep 2s -Type "jl" -Sleep 500ms -Type "j" -Sleep 500ms -Type "llllhhhllj" -Tab -Sleep 500ms -Type "jlllhjlllljhhhlllhkklkl" -Tab -Sleep 500ms -Type "jllljhhklhkhh" -Sleep 1.5s -Tab -Sleep 500ms -Type "jllljhhklhkhh" -Sleep 1.5s -Type "q" -Sleep 250ms diff --git a/vhs.tape b/vhs.tape new file mode 100644 index 0000000..a20672e --- /dev/null +++ b/vhs.tape @@ -0,0 +1,28 @@ +Output ./assets/demo.gif + +Set FontSize 24 +Set Width 1000 +Set Height 500 +Set Shell zsh + +Type "./termpicker" +Enter +Sleep 2s +Type "jl" +Sleep 500ms +Type "j" +Sleep 500ms +Type "llllhhhllj" +Tab +Sleep 500ms +Type "jlllhjlllljhhhlllhkklkl" +Tab +Sleep 500ms +Type "jllljhhklhkhh" +Sleep 1.5s +Tab +Sleep 500ms +Type "jllljhhklhkhh" +Sleep 1.5s +Type "q" +Sleep 250ms -- cgit v1.2.3