Skip to content

Commit

Permalink
Split input.repo to get only repo name. (#135)
Browse files Browse the repository at this point in the history
* Split input.repo to get only repo name.

input.repo comes from github.repository which means owner/repo
We only need the repo name for the Packages file.

* npm format:check fixes
  • Loading branch information
diogomatsubara authored May 10, 2024
1 parent 4e50f54 commit 811bfbb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion dist/publish-crates-debian-main.js
Original file line number Diff line number Diff line change
Expand Up @@ -127723,8 +127723,10 @@ async function main(input) {
(0,_command__WEBPACK_IMPORTED_MODULE_5__.sh)(`unzip ${archive} -d ${input.version}`);
}
}
// repo is actually owner/repo so we have to split it here to get only the git repo name
const gitRepo = input.repo.split("/")[1];
const debianRepo = `${input.sshHost}:${input.sshHostPath}`;
const packagesPath = `.Packages-${input.repo}-${input.version}`;
const packagesPath = `.Packages-${gitRepo}-${input.version}`;
const allPackagesPath = "Packages";
const allPackagesGzippedPath = "Packages.gz";
await _ssh__WEBPACK_IMPORTED_MODULE_4__/* .withIdentity */ .Y(input.sshPrivateKey, input.sshPassphrase, env => {
Expand Down
4 changes: 3 additions & 1 deletion src/publish-crates-debian.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,10 @@ export async function main(input: Input) {
}
}

// repo is actually owner/repo so we have to split it here to get only the git repo name
const gitRepo = input.repo.split("/")[1];
const debianRepo = `${input.sshHost}:${input.sshHostPath}`;
const packagesPath = `.Packages-${input.repo}-${input.version}`;
const packagesPath = `.Packages-${gitRepo}-${input.version}`;
const allPackagesPath = "Packages";
const allPackagesGzippedPath = "Packages.gz";

Expand Down

0 comments on commit 811bfbb

Please sign in to comment.