Skip to content

Commit

Permalink
ci: no use of gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
RanolP committed Mar 7, 2024
1 parent e3be690 commit 95b816f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,8 @@ await $`cp -r vendors build`;
await $`cp -r assets build`;

if ((await $`git branch --show-current`) != 'main') {
const { number } = JSON.parse(await $`gh pr view --json number`.quiet());
const hash = (await $`git rev-parse --short HEAD`.quiet()).toString().trim();
const version = `${hash} at #${number}`;
const version = `${hash}`;

$.quote = (s) => s;
await $`sed -E "s/version:.+/version: \\"${version}\\"/" -i "build/tsp-output/@typespec/openapi3/openapi.yaml"`;
Expand Down

0 comments on commit 95b816f

Please sign in to comment.