Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix some issues in the auto release branch workflow #2575

Merged
merged 1 commit into from
May 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading