forked from waja/action-debian-package
main: tar change directory
This commit is contained in:
parent
25ee9fdc80
commit
77636126b4
5
main.js
5
main.js
|
@ -66,9 +66,10 @@ async function main() {
|
|||
"tar",
|
||||
"--exclude-vcs",
|
||||
"--exclude", "./debian",
|
||||
"--transform", `s;^${sourceDirectory};${package}-${version};`,
|
||||
"--transform", `s/^\./${package}-${version}/`,
|
||||
"-cvzf", `${buildDirectory}/${package}_${version}.orig.tar.gz`,
|
||||
sourceDirectory
|
||||
"-C", sourceDirectory,
|
||||
"./"
|
||||
])
|
||||
core.endGroup()
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue