-
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Update readme formatting * Auto Format * Update readme formatting * Update readme formatting * add admonition * add admonition * add admonition * reduce emphasis on git.io deprecation * update demo * chore: update demo gif * update demo tape * chore: update demo gif * fix vim options * chore: update demo gif * add some more comments and delays * reposition cloudposse logo * chore: update demo gif * add line break * chore: update demo gif * move banner * chore: update demo gif * move banner * move banner * move banner * move banner * move banner * chore: update demo gif * changing timing * chore: update demo gif * fix typo * chore: update demo gif * try admonition * chore: update demo gif * add quote * fix whitespace * chore: update demo gif * move banner lower * chore: update demo gif --------- Co-authored-by: cloudpossebot <[email protected]> Co-authored-by: vhs-action 📼 <[email protected]>
- Loading branch information
1 parent
999fbbb
commit a1e5103
Showing
7 changed files
with
219 additions
and
180 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 |
---|---|---|
@@ -0,0 +1,58 @@ | ||
name: vhs | ||
on: | ||
pull_request: | ||
paths: | ||
- '*.tape' | ||
|
||
env: | ||
TERM: "xterm-256color" | ||
COLORTERM: "truecolor" | ||
LANG: "en_US.UTF-8" | ||
|
||
jobs: | ||
vhs: | ||
runs-on: ubuntu-latest | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
cancel-in-progress: true | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Docker Buildx (for demo tape) | ||
id: buildx | ||
uses: docker/setup-buildx-action@v2 | ||
|
||
- name: Tune vim settings | ||
run: | | ||
echo "set formatoptions-=r" >> ~/.vimrc | ||
echo "set formatoptions-=o" >> ~/.vimrc | ||
- uses: charmbracelet/vhs-action@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
path: demo.tape | ||
install-fonts: true | ||
|
||
- uses: stefanzweifel/git-auto-commit-action@v4 | ||
id: auto-commit | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
with: | ||
commit_message: "chore: update demo gif" | ||
commit_user_name: vhs-action 📼 | ||
commit_user_email: [email protected] | ||
commit_author: vhs-action 📼 <[email protected]> | ||
file_pattern: '*.gif' | ||
|
||
- name: Add Image to Job Summary | ||
if: steps.auto-commit.outputs.changes_detected == 'true' | ||
run: | | ||
echo "## Demo GIF" >> $GITHUB_STEP_SUMMARY | ||
echo "![Demo GIF](https://github.com/${{ github.repository }}/blob/${{ steps.auto-commit.outputs.commit_hash }}/docs/demo.gif?raw=true)" >> $GITHUB_STEP_SUMMARY | ||
- name: No changes | ||
if: steps.auto-commit.outputs.changes_detected == 'false' | ||
run: | | ||
echo "No changes to demo" >> $GITHUB_STEP_SUMMARY | ||
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
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
Oops, something went wrong.