Skip to content

Commit

Permalink
refactor: cli update 切换 repo 名称和 cli 名称
Browse files Browse the repository at this point in the history
  • Loading branch information
Miracle575 committed Sep 18, 2024
1 parent 87aadec commit 5e950b2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/late-olives-teach.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

0 comments on commit 5e950b2

Please sign in to comment.