fix: Fix Publish Draft Binary gh action (#186)

This commit is contained in:
Steve Degosserie 2025-09-23 16:35:18 +02:00 committed by GitHub
parent af61ef685c
commit c8787ddb7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7,7 +7,7 @@ type Commits = Await<ReturnType<Octokit["rest"]["repos"]["compareCommits"]>>["da
export function getCompareLink(packageName: string, previousTag: string, newTag: string) {
const previousPackage = execSync(
`git show ${previousTag}:../Cargo.lock | grep ${packageName}? | head -1 | grep -o '".*"'`
`git show ${previousTag}:../operator/Cargo.lock | grep ${packageName}? | head -1 | grep -o '".*"'`
).toString();
const previousCommit = /#([0-9a-f]*)/g.exec(previousPackage)[1].slice(0, 8);
const previousRepo = /(https:\/\/.*)\?/g.exec(previousPackage)[1];