Skip to content

Commit

Permalink
Update update-ghfetch.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
orangekame3 authored Oct 9, 2023
1 parent a32e202 commit 31285dc
Showing 1 changed file with 15 additions and 20 deletions.
35 changes: 15 additions & 20 deletions .github/workflows/update-ghfetch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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

0 comments on commit 31285dc

Please sign in to comment.