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