feat(terra-gpg-keys): Auto update on Rawhide (#8462) (#8469)

* feat: Auto update GPG keys on Rawhide

* fix: Update script file

(cherry picked from commit fb1cfd5a12)

Co-authored-by: Gilver <rockgrub@disroot.org>
This commit is contained in:
Raboneko
2025-12-18 13:12:59 -08:00
committed by GitHub
parent 65cab419bd
commit 3cc7fa36d9
2 changed files with 8 additions and 0 deletions
View File
+8
View File
@@ -0,0 +1,8 @@
import "andax/bump_extras.rhai" as bump;
open_file("anda/terra/gpg-keys/RELEASE.txt", "w").write(bump::as_bodhi_ver(labels.branch));
let dir = sub(`/[^/]+$`, "", __script_path);
if sh("[[ `git status " + dir + " --porcelain` ]] && exit 1 || exit 0", #{}).ctx.rc == 1 {
rpm.release();
}