From 3100c2422100905d268a77e305886c39a6dd2f92 Mon Sep 17 00:00:00 2001 From: Xavier Lau Date: Tue, 2 Apr 2024 02:24:12 +0800 Subject: [PATCH] Release `v0.4.0` --- .github/workflows/watch.yml | 20 ++++++++++++++++++++ on-chain-version-watcher/Cargo.lock | 2 +- on-chain-version-watcher/Cargo.toml | 2 +- on-chain-version-watcher/src/main.rs | 2 ++ whitelist-upgrade-hasher/Cargo.lock | 2 +- whitelist-upgrade-hasher/Cargo.toml | 2 +- 6 files changed, 26 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/watch.yml diff --git a/.github/workflows/watch.yml b/.github/workflows/watch.yml new file mode 100644 index 0000000..301b699 --- /dev/null +++ b/.github/workflows/watch.yml @@ -0,0 +1,20 @@ +name: Watch +on: + schedule: + - cron: "0 * * * *" + +env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + OCVW_LINK: https://github.com/darwinia-network/darwinia-release/releases/download/v0.4.0/ocvw.zst + +jobs: + watch: + runs-on: ubuntu-latest + steps: + - name: Install ocvw + run: | + curl -L ${{ env.OCVW_LINK }} | tar --zst -xv + sudo mv ocvw /usr/bin + sudo chmod u+x /usr/bin/ocvw + - name: Watch + run: ocvw diff --git a/on-chain-version-watcher/Cargo.lock b/on-chain-version-watcher/Cargo.lock index ae153d1..b698b4e 100644 --- a/on-chain-version-watcher/Cargo.lock +++ b/on-chain-version-watcher/Cargo.lock @@ -119,7 +119,7 @@ dependencies = [ [[package]] name = "ocvw" -version = "0.3.0" +version = "0.4.0" dependencies = [ "serde", "serde_json", diff --git a/on-chain-version-watcher/Cargo.toml b/on-chain-version-watcher/Cargo.toml index 2c14056..16d40dd 100644 --- a/on-chain-version-watcher/Cargo.toml +++ b/on-chain-version-watcher/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "ocvw" -version = "0.3.0" +version = "0.4.0" [dependencies] # crates.io diff --git a/on-chain-version-watcher/src/main.rs b/on-chain-version-watcher/src/main.rs index 42f49fe..b1afb93 100644 --- a/on-chain-version-watcher/src/main.rs +++ b/on-chain-version-watcher/src/main.rs @@ -53,6 +53,8 @@ impl Watcher { let on_chain_version = self.on_chain_version(network)?; if on_chain_version == github_version_d { + println!("going to release the latest version {} to {}", tag, network); + self.release(network, &tag)?; } else { println!("runtime has not been updated to the latest version yet"); diff --git a/whitelist-upgrade-hasher/Cargo.lock b/whitelist-upgrade-hasher/Cargo.lock index 9f97b79..575d512 100644 --- a/whitelist-upgrade-hasher/Cargo.lock +++ b/whitelist-upgrade-hasher/Cargo.lock @@ -41,7 +41,7 @@ checksum = "72ef4a56884ca558e5ddb05a1d1e7e1bfd9a68d9ed024c21704cc98872dae1bb" [[package]] name = "wuh" -version = "0.3.0" +version = "0.4.0" dependencies = [ "array-bytes", "blake2-rfc", diff --git a/whitelist-upgrade-hasher/Cargo.toml b/whitelist-upgrade-hasher/Cargo.toml index c91d709..7f803bc 100644 --- a/whitelist-upgrade-hasher/Cargo.toml +++ b/whitelist-upgrade-hasher/Cargo.toml @@ -1,7 +1,7 @@ [package] edition = "2021" name = "wuh" -version = "0.3.0" +version = "0.4.0" [dependencies] # crates.io