Skip to content

Commit

Permalink
πŸ› fix(.env.example): update HOST to correct URL
Browse files Browse the repository at this point in the history
✨ feat(vhs.yml): add step to install batcat
✨ feat(vhs.yml): add step to create pull request with updated VHS GIF

πŸš€ chore(deno.jsonc): add vhs script to run demo.tape in vhs directory
  • Loading branch information
jupegarnica committed May 4, 2023
1 parent f9eb178 commit c36a168
Show file tree
Hide file tree
Showing 3 changed files with 29 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .env.example
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
HOST= https://aker.deno.dev
HOST= https://faker.deno.dev
HOST_HTTPBIN= https://httpbin.org
HOST_HTTP2= https://http2.deno.dev
36 changes: 26 additions & 10 deletions .github/workflows/vhs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,34 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: install batcat
run: |
sudo apt-get install batcat
- uses: denoland/setup-deno@v1
- run: deno task install
- run: cd vhs
- uses: charmbracelet/vhs-action@v1
with:
path: 'vhs/demo.tape'
- uses: stefanzweifel/git-auto-commit-action@v4
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
path: './demo.tape'

- name: Pull request changes
uses: peter-evans/create-pull-request@v3
with:
commit_message: Update generated VHS GIF
branch: main
commit_user_name: vhs-action πŸ“Ό
commit_user_email: actions@github.com
commit_author: vhs-action πŸ“Ό <actions@github.com>
file_pattern: 'vhs/*.gif'
token: ${{ secrets.GITHUB_TOKEN }}
commit-message: "Update generated VHS GIF"
title: "Update generated VHS GIF"
body: "Update generated VHS GIF"




# - uses: stefanzweifel/git-auto-commit-action@v4
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# with:
# commit_message: Update generated VHS GIF
# branch: main
# commit_user_name: vhs-action πŸ“Ό
# commit_user_email: actions@github.com
# commit_author: vhs-action πŸ“Ό <actions@github.com>
# file_pattern: 'vhs/*.gif'
3 changes: 2 additions & 1 deletion deno.jsonc
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
"readme": "cat docs/started.md > README.md && cat docs/usage.md >> README.md && cat docs/syntax.md >> README.md && deno task readme:copy && git add README.md vscode-extension/README.md && git commit -m 'docs: update README.md' || true",
"readme:copy": "cp README.md vscode-extension/README.md",
"release": "deno task readme && deno task version patch && git push --tags origin main",
"publish-image":"export IMAGE_NAME=jupegarnica/tepi && export IMAGE_TAG=$(deno task version get) && docker build -t $IMAGE_NAME:$IMAGE_TAG . && docker push $IMAGE_NAME:$IMAGE_TAG && docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest && docker push $IMAGE_NAME:latest"
"publish-image":"export IMAGE_NAME=jupegarnica/tepi && export IMAGE_TAG=$(deno task version get) && docker build -t $IMAGE_NAME:$IMAGE_TAG . && docker push $IMAGE_NAME:$IMAGE_TAG && docker tag $IMAGE_NAME:$IMAGE_TAG $IMAGE_NAME:latest && docker push $IMAGE_NAME:latest",
"vhs":"bash -s 'cd vhs && vhs < demo.tape'"
}
}

0 comments on commit c36a168

Please sign in to comment.