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

chore: cli update 命令切换 repo 名称和 cli 名称 #1433

Merged
merged 1 commit into from
Sep 18, 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
5 changes: 5 additions & 0 deletions .changeset/seven-carrots-allow.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@scow/cli": patch
---

cli update 命令切换 repo 名称和 cli 名称
4 changes: 2 additions & 2 deletions apps/cli/src/cmd/updateCli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ interface Options {
}

const owner = "PKUHPC";
const repo = "SCOW";
const repo = "OpenSCOW";
const workflow_id = "test-build-publish.yaml";

const allowedArch = ["x64", "arm64"];
Expand Down Expand Up @@ -128,7 +128,7 @@ Please provide your GitHub personal access token via GITHUB_TOKEN in env or .env

const artifacts = await octokit.rest.actions.listWorkflowRunArtifacts({ owner, repo, run_id: latestRun.id });

const artifactName = "scow-cli-" + arch;
const artifactName = "openscow-cli-" + arch;

const artifact = artifacts.data.artifacts.find((a) => a.name === artifactName);

Expand Down
Loading