Skip to content

Commit

Permalink
Merge pull request #26 from zenodraft/dbg
Browse files Browse the repository at this point in the history
Dbg
  • Loading branch information
jspaaks committed Feb 5, 2024
2 parents cc50403 + e31e01c commit 5055144
Show file tree
Hide file tree
Showing 38 changed files with 4,601 additions and 335 deletions.
3 changes: 1 addition & 2 deletions lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,7 @@ const main = () => __awaiter(void 0, void 0, void 0, function* () {
if (filenames === '') {
const archive_name = `${payload.contents.repository.name}.${compression}`;
if (compression === 'tar.gz') {
yield exec_1.exec('touch', [archive_name]);
yield exec_1.exec('tar', ['--exclude=\'.\'', '--exclude=\'..\'', '--exclude=\'.git\'', `--exclude=${archive_name}`, '-zcvf', archive_name, `ls -1a`]);
yield exec_1.exec('git', ['archive', '--format=tar.gz', `--output=${archive_name}`, '--verbose', 'HEAD']);
yield zenodraft.file_add(token, sandbox, version_id, archive_name, verbose);
}
else if (compression === 'zip') {
Expand Down

0 comments on commit 5055144

Please sign in to comment.