From 024f4f209dfe092c270137037849e062c2351b56 Mon Sep 17 00:00:00 2001 From: Anthony PHAM Date: Mon, 4 Nov 2024 17:29:06 +0100 Subject: [PATCH] moving git actions in peter-evans/create-pull-request (#446) --- .github/workflows/dispatch-update.yml | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/.github/workflows/dispatch-update.yml b/.github/workflows/dispatch-update.yml index 7b310bcd8..c45a84134 100644 --- a/.github/workflows/dispatch-update.yml +++ b/.github/workflows/dispatch-update.yml @@ -34,17 +34,14 @@ jobs: # Update version with yarn yarn run version v${TAG_NAME} - # Commit and push changes - git checkout -b update-version-${{ env.TAG_NAME }} - git add . - git commit -m "Update docs to use version v${TAG_NAME}" - git push origin update-version-${{ env.TAG_NAME }} - - name: Create Pull Request - uses: peter-evans/create-pull-request@v5 + uses: peter-evans/create-pull-request@v7 with: token: ${{ secrets.GITHUB_TOKEN }} base: main - head: update-version-${{ env.TAG_NAME }} - title: "Update docs to use version v${TAG_NAME}" - body: "Automatically generated PR to update documentation for version v${TAG_NAME}" + branch: update-version-${{ env.TAG_NAME }} + title: "Update docs to use version ${{ env.TAG_NAME }}" + body: "Automatically generated PR to update documentation for version ${{ env.TAG_NAME }}" + commit-message: "Update docs to use version ${{ env.TAG_NAME }}" + author-name: "obol-platform" + author-email: "platform@obol.tech"