mirror of
https://github.com/terrapkg/packages.git
synced 2026-06-07 04:12:18 +00:00
(cherry picked from commit 5d384c83c5)
Co-authored-by: madomado <madonuko@outlook.com>
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
rpm.version(gitlab_tag("19057685"));
|
||||
if rpm.changed() {
|
||||
rpm.global("commit", gitlab_commit("19057685"));
|
||||
rpm.global("commit", gitlab_commit("19057685", "main"));
|
||||
rpm.release();
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
if filters.contains("nightly") {
|
||||
rpm.global("commit", gh_commit("zed-industries/zed"));
|
||||
if rpm.changed() {
|
||||
let v = find("(\\d+\\.\\d+\\d+\\.\\d+)", find("\nversion = \"(\\d+\\.\\d+\\d+\\.\\d+)\"\n", gh_rawfile("zed-industries/zed", "main", "crates/zed/Cargo.toml"), 1), 1);
|
||||
let v = find("\nversion = \"([.\\d]+)\"\n", gh_rawfile("zed-industries/zed", "main", "crates/zed/Cargo.toml"), 1);
|
||||
rpm.global("ver", v);
|
||||
rpm.global("commit_date", date());
|
||||
rpm.release();
|
||||
|
||||
@@ -6,5 +6,8 @@ for release in releases {
|
||||
let tag = release.tag_name;
|
||||
tag.pop(4); // remove the "-pre" suffix
|
||||
rpm.global("ver", tag);
|
||||
terminate();
|
||||
break;
|
||||
if rpm.changed() {
|
||||
rpm.release();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2,4 +2,7 @@ project pkg {
|
||||
rpm {
|
||||
spec = "albius.spec"
|
||||
}
|
||||
labels {
|
||||
nightly = 1
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1,7 @@
|
||||
rpm.version(gh("Vanilla-OS/Albius"));
|
||||
if filters.contains("nightly") {
|
||||
rpm.global("commit", gh_commit("Vanilla-OS/Albius"));
|
||||
if rpm.changed() {
|
||||
rpm.global("commit_date", date());
|
||||
rpm.release();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1 +1 @@
|
||||
rpm.version("pypi_version", gh("Ultramarine-Linux/stellar"));
|
||||
rpm.global("pypi_version", gh("Ultramarine-Linux/stellar"));
|
||||
|
||||
Reference in New Issue
Block a user