From 4b038f3a4d4f0fc24214622de4e5d800b47da35e Mon Sep 17 00:00:00 2001 From: koki-develop Date: Sun, 26 Mar 2023 10:42:19 +0900 Subject: [PATCH] create update demo workflow --- .github/workflows/update-demo.yml | 33 +++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/update-demo.yml diff --git a/.github/workflows/update-demo.yml b/.github/workflows/update-demo.yml new file mode 100644 index 0000000..a21d9e4 --- /dev/null +++ b/.github/workflows/update-demo.yml @@ -0,0 +1,33 @@ +name: update demo + +on: + workflow_dispatch: + +jobs: + update-demo: + permissions: + contents: write + pull-requests: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: actions/setup-go@v4 + with: + go-version-file: go.mod + + - uses: charmbracelet/vhs-action@v1 + with: + path: ./tapes/cli-demo.tape + token: ${{ secrets.GITHUB_TOKEN }} + - uses: charmbracelet/vhs-action@v1 + with: + path: ./tapes/library-demo.tape + token: ${{ secrets.GITHUB_TOKEN }} + + - uses: peter-evans/create-pull-request@v4 + with: + token: ${{ secrets.GITHUB_TOKEN }} + title: update docs + body: ${{ github.sha }} + branch: docs/update + branch-suffix: short-commit-hash