diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..db16cc7 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,17 @@ +# Set default behaviour to automatically normalize line endings. +* text=auto + +# Force batch scripts to always use CRLF line endings so that if a repo is accessed +# in Windows via a file share from Linux, the scripts will work. +*.{cmd,[cC][mM][dD]} text eol=crlf +*.{bat,[bB][aA][tT]} text eol=crlf + +# Force bash scripts to always use LF line endings so that if a repo is accessed +# in Unix via a file share from Windows, the scripts will work. +*.sh text eol=lf + +############################### +# Git Large File System (LFS) # +############################### + +*.gif filter=lfs diff=lfs merge=lfs -text diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml index ef27133..65ffa48 100644 --- a/.github/workflows/vhs.yml +++ b/.github/workflows/vhs.yml @@ -16,32 +16,17 @@ jobs: env: TERM: xterm-256color with: - path: "examples/deeper/demo.tape" + working-directory: "./examples/deeper/" + path: "demo.tape" - uses: stefanzweifel/git-auto-commit-action@v4 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: + working-directory: "./examples/deeper/" commit_message: Generated `deeper` demo VHS GIF branch: main commit_user_name: vhs-action 📼 commit_user_email: actions@github.com commit_author: vhs-action 📼 - # file_pattern: "*.gif" - # vhs-simple: - # runs-on: ubuntu-latest - # steps: - # - uses: actions/checkout@v3 - # - uses: charmbracelet/vhs-action@v1 - # with: - # path: 'examples/simple/demo.tape' - # - uses: stefanzweifel/git-auto-commit-action@v4 - # env: - # GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - # TERM: xterm-256color - # with: - # commit_message: Update generated VHS GIF - # branch: main - # commit_user_name: vhs-action 📼 - # commit_user_email: actions@github.com - # commit_author: vhs-action 📼 - # file_pattern: '*.gif' + file_pattern: "*.gif" + \ No newline at end of file diff --git a/demo.gif b/demo.gif deleted file mode 100644 index 4648e89..0000000 Binary files a/demo.gif and /dev/null differ diff --git a/examples/deeper/.gitattributes b/examples/deeper/.gitattributes deleted file mode 100644 index 0305432..0000000 --- a/examples/deeper/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -demo.gif filter=lfs diff=lfs merge=lfs -text diff --git a/examples/deeper/demo.tape b/examples/deeper/demo.tape index d9e1a44..9e3e9c9 100644 --- a/examples/deeper/demo.tape +++ b/examples/deeper/demo.tape @@ -39,4 +39,3 @@ Enter Sleep 2s Enter Sleep 4s - diff --git a/examples/simple/.gitattributes b/examples/simple/.gitattributes deleted file mode 100644 index 0305432..0000000 --- a/examples/simple/.gitattributes +++ /dev/null @@ -1 +0,0 @@ -demo.gif filter=lfs diff=lfs merge=lfs -text