From 373844dccbdd99f0ea5cc7d22a032737de8760d7 Mon Sep 17 00:00:00 2001 From: Anthony Pham Date: Mon, 4 Nov 2024 14:04:22 +0100 Subject: [PATCH] setup user name and email --- .github/workflows/dispatch-update.yml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/dispatch-update.yml b/.github/workflows/dispatch-update.yml index 7b310bcd8..1ee5428c3 100644 --- a/.github/workflows/dispatch-update.yml +++ b/.github/workflows/dispatch-update.yml @@ -3,6 +3,9 @@ name: Update Docs Version on: repository_dispatch: types: [update-version] + push: + branches: + - fix_dispatch_trigger jobs: update-docs-version: @@ -14,6 +17,14 @@ jobs: - name: Extract tag name run: echo "TAG_NAME=${{ github.event.client_payload.tag }}" >> $GITHUB_ENV + - name: Set up Git user identity + run: | + git config --global user.name "obol-platform" + git config --global user.email "platform@obol.tech" + + - name: Set TAG_NAME environment variable + run: echo "TAG_NAME=v1.1.3" >> $GITHUB_ENV + - name: Update docs to new version run: | TAG_NAME="$(echo "${TAG_NAME}" | sed 's/^v//')" @@ -45,6 +56,7 @@ jobs: with: token: ${{ secrets.GITHUB_TOKEN }} base: main - head: update-version-${{ env.TAG_NAME }} + branch: update-version-${{ env.TAG_NAME }} + delete-branch: true title: "Update docs to use version v${TAG_NAME}" body: "Automatically generated PR to update documentation for version v${TAG_NAME}"