mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix(ci): add special case for PRing to branch, no backports required
This commit is contained in:
@@ -10,7 +10,7 @@ fn pr(branch, dir, spec) {
|
||||
sh(`git reset HEAD ${dir}`, #{});
|
||||
return;
|
||||
}
|
||||
sh(`gh pr create --title '[${branch}] bump(${labels.scope}): ${spec}' --body 'Automatic bump from CI'`, #{});
|
||||
sh(`gh pr create --title '[${branch}] bump(${labels.scope}): ${spec}' --body 'Automatic bump from CI\n\nnosync'`, #{});
|
||||
sh(`git reset --hard HEAD^`, #{});
|
||||
}
|
||||
|
||||
@@ -21,6 +21,10 @@ for dir in filelist {
|
||||
if dir.is_empty() { continue; }
|
||||
let spec = cfg::load_file(`${dir}/anda.hcl`).project.pkg.rpm.spec;
|
||||
spec.pop(5); // remove `.spec` suffix
|
||||
if labels.scope == "branch" {
|
||||
sh(`git commit -S -m "bump(${labels.scope}): ${spec}" ${dir}`, #{});
|
||||
continue;
|
||||
}
|
||||
sh(`git stash push -m "bump(${labels.scope}): ${spec}" -- ${dir}`, #{});
|
||||
pr("frawhide", dir, spec);
|
||||
pr("f43", dir, spec);
|
||||
|
||||
Reference in New Issue
Block a user