Skip to content

Commit

Permalink
feature(build): introduce wf to update README gif
Browse files Browse the repository at this point in the history
Signed-off-by: jonathan zollinger <[email protected]>
  • Loading branch information
Jonathan-Zollinger committed Jan 7, 2024
1 parent 9ff0e60 commit 0c50c44
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 1 deletion.
33 changes: 33 additions & 0 deletions .github/workflows/update-README.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Update README gifs

on:
workflow_dispatch:

permissions:
contents: write
jobs:
vhs:
runs-on: ubuntu-latest
steps:
- name: Load secrets from 1Password
uses: 1Password/[email protected]
id: OPassword-credentials
with:
export-env: true
env:
OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_GHACTIONS_SA_TOKEN }}
GITHUB_TOKEN: op://gh/vhs-actions/credential
- uses: actions/checkout@v3
- uses: charmbracelet/vhs-action@v1
with:
path: 'src/docs/example.tape'
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ steps.OPassword-credentials.outputs.GITHUB_TOKEN }}
with:
commit_message: Update generated VHS GIF
branch: main
commit_user_name: vhs-action 📼
commit_user_email: [email protected]
commit_author: vhs-action 📼 <[email protected]>
file_pattern: '*.gif'
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Microfetch is an improved version of neofetch written with [micronaut] and built with [graalvm].

![WindowsTerminal_CdOxKQxCBf.gif](src/docs/WindowsTerminal_CdOxKQxCBf.gif)
![example](src/docs/example.gif)


### Install
Expand Down
File renamed without changes
12 changes: 12 additions & 0 deletions src/docs/example.tape
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@

Output example.gif

Require microfetch

Set FontSize 16
Set Width 350
Set Height 550

Type "microfetch" Sleep 500ms Enter

Sleep 5s

0 comments on commit 0c50c44

Please sign in to comment.