From 0d32580430a801c492990990bc549b3ec214e42f Mon Sep 17 00:00:00 2001 From: jonathan zollinger Date: Sat, 6 Jan 2024 21:20:43 -0700 Subject: [PATCH] fix(docs): correct wf scripts Signed-off-by: jonathan zollinger --- .github/workflows/test-changes.yml | 17 +++++++++++++++++ .github/workflows/update-README.yml | 1 + 2 files changed, 18 insertions(+) diff --git a/.github/workflows/test-changes.yml b/.github/workflows/test-changes.yml index 29b3a9f..2a0faaa 100644 --- a/.github/workflows/test-changes.yml +++ b/.github/workflows/test-changes.yml @@ -34,3 +34,20 @@ jobs: native-image-pr-reports: 'true' - name: test and build on ${{ matrix.os }} run: ./gradlew nativeCompile + - if: runner.os == 'ubuntu' + run: echo -e "#! /usr/bin/env bash \n/home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch" >> microfetch + - if: runner.os == 'ubuntu' + uses: charmbracelet/vhs-action@v1 + with: + path: 'src/docs/example.tape' + - if: runner.os == 'ubuntu' + uses: stefanzweifel/git-auto-commit-action@v4 + env: + GITHUB_TOKEN: ${{ steps.OPassword-credentials.outputs.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: '*.gif' \ No newline at end of file diff --git a/.github/workflows/update-README.yml b/.github/workflows/update-README.yml index c05b8bd..d109cac 100644 --- a/.github/workflows/update-README.yml +++ b/.github/workflows/update-README.yml @@ -18,6 +18,7 @@ jobs: OP_SERVICE_ACCOUNT_TOKEN: ${{ secrets.OP_GHACTIONS_SA_TOKEN }} GITHUB_TOKEN: op://gh/vhs-actions/credential - uses: actions/checkout@v3 + - run: echo -e "#! /usr/bin/env bash \n/home/runner/work/microfetch/microfetch/build/native/nativeCompile/microfetch" >> microfetch - uses: charmbracelet/vhs-action@v1 with: path: 'src/docs/example.tape'