From 0b54374ab4fa37e857763aa19eface49f67c0dd3 Mon Sep 17 00:00:00 2001 From: Andrey Nering Date: Thu, 13 Nov 2025 14:09:43 -0300 Subject: [PATCH] ci: add manually triggered workflow to record vcr cassettes --- .github/workflows/record-vcr-carssettes.yml | 35 +++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/record-vcr-carssettes.yml diff --git a/.github/workflows/record-vcr-carssettes.yml b/.github/workflows/record-vcr-carssettes.yml new file mode 100644 index 0000000000000000000000000000000000000000..c0caa67bba65d4638c77740ade1bfb6787ac7738 --- /dev/null +++ b/.github/workflows/record-vcr-carssettes.yml @@ -0,0 +1,35 @@ +name: record-vcr-cassettes + +on: + workflow_dispatch: + inputs: + branch: + description: Branch + required: true + type: string + +jobs: + record: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + with: + ref: ${{ github.event.inputs.branch }} + token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} + + - uses: actions/setup-go@44694675825211faa026b3c33043df3e48a5fa00 # v6.0.0 + with: + go-version-file: go.mod + + - name: Install Task + uses: go-task/setup-task@0ab1b2a65bc55236a3bc64cde78f80e20e8885c2 # v1.0.0 + + - run: task record + + - uses: stefanzweifel/git-auto-commit-action@28e16e81777b558cc906c8750092100bbb34c5e3 # v5 + with: + commit_message: "test: auto-record vcr cassettes" + branch: ${{ github.event.inputs.branch }} + commit_user_name: Charm + commit_user_email: 124303983+charmcli@users.noreply.github.com + commit_author: Charm <124303983+charmcli@users.noreply.github.com>