From 3a6a94e252e2deece0f4d4af42761e51d24e348c Mon Sep 17 00:00:00 2001 From: iscai-msft <43154838+iscai-msft@users.noreply.github.com> Date: Tue, 7 May 2024 12:29:41 -0400 Subject: [PATCH] fix some issues in the auto release branch workflow (#2575) --- .github/workflows/prepare-auto-release-branch.yml | 6 +++--- eng/prepare-release-branch.js | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/prepare-auto-release-branch.yml b/.github/workflows/prepare-auto-release-branch.yml index 8cba349335a..5ff33f21669 100644 --- a/.github/workflows/prepare-auto-release-branch.yml +++ b/.github/workflows/prepare-auto-release-branch.yml @@ -24,13 +24,13 @@ jobs: with: node-version: 18.x - - run: npm install -g pnpm@7.27.1 - name: Install PNPM + - name: Install pnpm + uses: pnpm/action-setup@v2 - run: pnpm install name: Install dependencies - name: Create release branch - run: node ./eng/publish.mjs + run: node ./eng/prepare-release-branch.js env: GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} diff --git a/eng/prepare-release-branch.js b/eng/prepare-release-branch.js index 5f226522eef..96e93b645f7 100644 --- a/eng/prepare-release-branch.js +++ b/eng/prepare-release-branch.js @@ -1,4 +1,5 @@ const stdout = execSync(`git status --porcelain`).toString(); +const branchName = "publish/auto-release" if (stdout.trim() !== "") { console.log("Commiting the following changes:\n", stdout); @@ -10,7 +11,7 @@ if (stdout.trim() !== "") { console.log(); console.log("-".repeat(160)); console.log("| Link to create the PR"); - console.log(`| https://github.com/timotheeguerin/chronus/pull/new/${branchName} `); + console.log(`| https://github.com/Azure/autorest.python/pull/new/${branchName} `); console.log("-".repeat(160)); const github = getOctokit(process.env.GITHUB_TOKEN ?? "");