main: use git-deborig (#37)

This commit is contained in:
Dawid Dziurla 2021-07-10 00:10:09 +02:00 committed by GitHub
parent fb3670aed9
commit 3c531250ab
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

27
main.js
View file

@ -103,22 +103,6 @@ async function main() {
])
core.endGroup()
if (revision) {
core.startGroup("Create tarball")
await exec.exec("docker", [
"exec",
container,
"tar",
"--exclude-vcs",
"--exclude", "./debian",
"--transform", `s/^\./${pkg}-${version}/S`,
"-cvzf", `${buildDirectory}/${pkg}_${version}.orig.tar.gz`,
"-C", sourceDirectory,
"./"
])
core.endGroup()
}
core.startGroup("Update packages list")
await exec.exec("docker", [
"exec",
@ -145,6 +129,17 @@ async function main() {
core.endGroup()
}
if (revision) {
core.startGroup("Create tarball")
await exec.exec("docker", [
"exec",
container,
"git-deborig",
"HEAD"
])
core.endGroup()
}
core.startGroup("Build packages")
await exec.exec("docker", [
"exec",