Skip to content

Commit

Permalink
fix some issues in the auto release branch workflow (#2575)
Browse files Browse the repository at this point in the history
  • Loading branch information
iscai-msft authored May 7, 2024
1 parent 3b31b69 commit 3a6a94e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/prepare-auto-release-branch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}}
3 changes: 2 additions & 1 deletion eng/prepare-release-branch.js
Original file line number Diff line number Diff line change
@@ -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);
Expand All @@ -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 ?? "");
Expand Down

0 comments on commit 3a6a94e

Please sign in to comment.