Skip to content

Commit

Permalink
Release v0.8.0
Browse files Browse the repository at this point in the history
Signed-off-by: Xavier Lau <[email protected]>
  • Loading branch information
AurevoirXavier committed Apr 3, 2024
1 parent 5174710 commit 23f0a09
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/watch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ on:

env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
OCVW_LINK: https://github.com/darwinia-network/darwinia-release/releases/download/v0.7.0/ocvw.zst
OCVW_LINK: https://github.com/darwinia-network/darwinia-release/releases/download/v0.8.0/ocvw.zst

jobs:
watch:
Expand Down
2 changes: 1 addition & 1 deletion on-chain-version-watcher/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion on-chain-version-watcher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "ocvw"
version = "0.7.0"
version = "0.8.0"

[dependencies]
# crates.io
Expand Down
20 changes: 9 additions & 11 deletions on-chain-version-watcher/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -124,23 +124,21 @@ impl GitHub {
) -> Result<Version> {
let api = format!("https://api.github.com/repos/darwinia-network/{repository}/releases");
let releases = self.get::<Vec<GitHubRelease>>(&api)?;
let re = if prerelease {
Regex::new(r".*(pango-\d{4})").unwrap()
} else {
Regex::new(r".*(v\d+\.\d+\.\d+(-\d+)?)").unwrap()
};

for r in releases {
let re = if prerelease {
if !r.prerelease {
continue;
}

Regex::new(r".*(pango-\d{4})").unwrap()
} else {
Regex::new(r".*(v\d+\.\d+\.\d+(-\d+)?)").unwrap()
};

if prerelease != r.prerelease {
continue;
}
if branch.map_or(true, |b| r.target_commitish == b) {
let tag = re
.captures(&r.tag_name)
.and_then(|c| c.get(1).map(|m| m.as_str()))
.expect("invalid tag name");
.unwrap_or_else(|| panic!("invalid tag name {}", r.tag_name));
let spec = tag2spec_version(tag, prerelease)?;

return Ok(Version {
Expand Down
2 changes: 1 addition & 1 deletion whitelist-upgrade-hasher/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion whitelist-upgrade-hasher/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
edition = "2021"
name = "wuh"
version = "0.7.0"
version = "0.8.0"

[dependencies]
# crates.io
Expand Down

0 comments on commit 23f0a09

Please sign in to comment.