-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature(build): introduce wf to update README gif
Signed-off-by: jonathan zollinger <[email protected]>
- Loading branch information
1 parent
9ff0e60
commit 0c50c44
Showing
4 changed files
with
46 additions
and
1 deletion.
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,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' |
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
File renamed without changes
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,12 @@ | ||
|
||
Output example.gif | ||
|
||
Require microfetch | ||
|
||
Set FontSize 16 | ||
Set Width 350 | ||
Set Height 550 | ||
|
||
Type "microfetch" Sleep 500ms Enter | ||
|
||
Sleep 5s |