From a0d6919a8ec3ef02df2115723a4897becfb53ec6 Mon Sep 17 00:00:00 2001 From: Shreyaschorge Date: Mon, 23 Dec 2024 23:56:04 +0530 Subject: [PATCH] Update automation script to pull and rebase --- .github/workflows/oas-to-sdk-pr.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/oas-to-sdk-pr.yaml b/.github/workflows/oas-to-sdk-pr.yaml index cd672ef..62468d9 100644 --- a/.github/workflows/oas-to-sdk-pr.yaml +++ b/.github/workflows/oas-to-sdk-pr.yaml @@ -25,7 +25,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: '>=19.9.0' + node-version: ">=19.9.0" - name: Update OAS submodule and package version in nodejs-sdk run: | @@ -82,6 +82,9 @@ jobs: git add package.json git commit -m "Update package.json version to $SDK_VERSION" + # Pull and rebase + git pull --rebase + # Push changes git push origin HEAD:"$BRANCH_NAME" shell: bash