From c36a168af40df9a623a229de69e7f4bce73b6fa4 Mon Sep 17 00:00:00 2001 From: Jupegarnica Date: Thu, 4 May 2023 08:33:23 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(.env.example):=20update=20HO?= =?UTF-8?q?ST=20to=20correct=20URL=20=E2=9C=A8=20feat(vhs.yml):=20add=20st?= =?UTF-8?q?ep=20to=20install=20batcat=20=E2=9C=A8=20feat(vhs.yml):=20add?= =?UTF-8?q?=20step=20to=20create=20pull=20request=20with=20updated=20VHS?= =?UTF-8?q?=20GIF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🚀 chore(deno.jsonc): add vhs script to run demo.tape in vhs directory --- .env.example | 2 +- .github/workflows/vhs.yml | 36 ++++++++++++++++++++++++++---------- deno.jsonc | 3 ++- 3 files changed, 29 insertions(+), 12 deletions(-) diff --git a/.env.example b/.env.example index c72d0c8..080a1db 100644 --- a/.env.example +++ b/.env.example @@ -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 \ No newline at end of file diff --git a/.github/workflows/vhs.yml b/.github/workflows/vhs.yml index 22d47f2..144187a 100644 --- a/.github/workflows/vhs.yml +++ b/.github/workflows/vhs.yml @@ -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 📼 - file_pattern: 'vhs/*.gif' \ No newline at end of file + 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 📼 + # file_pattern: 'vhs/*.gif' \ No newline at end of file diff --git a/deno.jsonc b/deno.jsonc index 47490f7..904c77c 100644 --- a/deno.jsonc +++ b/deno.jsonc @@ -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'" } }