Skip to content

Commit

Permalink
check Cargo.toml for version
Browse files Browse the repository at this point in the history
  • Loading branch information
june-fish committed Jun 20, 2024
1 parent ec42607 commit a7eed98
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions anda/devs/zed-nightly/update.rhai
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
if filters.contains("nightly") {
rpm.global("commit", gh_commit("zed-industries/zed"));
if rpm.changed() {
rpm.global("ver", gh("zed-industries/zed"));
rpm.global("commit_date", date());
rpm.release();
}
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);
rpm.global("ver", v);
rpm.global("commit_date", date());
rpm.release();
}
}

0 comments on commit a7eed98

Please sign in to comment.