generated from orangekame3/cobra-template
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a32e202
commit 31285dc
Showing
1 changed file
with
15 additions
and
20 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 |
---|---|---|
|
@@ -17,7 +17,7 @@ jobs: | |
uses: actions/setup-go@v3 | ||
with: | ||
go-version: '1.21' | ||
|
||
- name: Install latest ttyd | ||
run: | | ||
wget https://github.com/tsl0922/ttyd/releases/download/1.7.4/ttyd.x86_64 | ||
|
@@ -32,23 +32,18 @@ jobs: | |
- name: Install vhs and ghfetch | ||
run: | | ||
go install github.com/orangekame3/[email protected] | ||
- name: Run ghfetch | ||
uses: charmbracelet/vhs-action@v1 | ||
with: | ||
path: 'img/demo.tape' | ||
- name: export GITHUB_TOKEN | ||
run: | | ||
export GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} | ||
- name: Convert to gif | ||
go install github.com/orangekame3/[email protected] | ||
uses: stefanzweifel/git-auto-commit-action@v4 | ||
go install github.com/orangekame3/ghfetch@latest | ||
go install github.com/charmbracelet/vhs@latest | ||
- name: Generate ghfetch gif with vhs | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.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: 'img/*.gif' | ||
GITHUB_TOKEN: ${{ secrets.GH_PAT }} | ||
run: | | ||
export GITHUB_TOKEN=${{ secrets.GH_PAT }} | ||
vhs < img/demo.tape | ||
- name: Commit and push if there are changes | ||
run: | | ||
git add img/demo.gif | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git commit -m "Update ghfetch gif with vhs" -a || echo "No changes to commit" | ||
git push |