diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 43f088d..4d4c73e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -32,7 +32,7 @@ jobs: id: pkg shell: "bash" run: | - VERSION=$(awk -F ' = ' '$1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2) }' Cargo.toml) + VERSION=$(awk -F ' = ' '/^\[package\]/ { in_package = 1 } /^\[/ && !/^\[package\]/ { in_package = 0 } in_package && $1 ~ /version/ { gsub(/["]/, "", $2); printf("%s",$2); exit }' Cargo.toml) echo VERSION=$VERSION >> $GITHUB_OUTPUT - name: Check if this is a new version diff --git a/Cargo.toml b/Cargo.toml index 5856c17..37a5bb1 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -13,4 +13,4 @@ reqwest = "0.11.23" secrets = "1.2.0" serde = "1.0.195" systemd = "0.10.0" -tokio ={ version = "1.35.1", features = ["full"] } +tokio = { version = "1.35.1", features = ["full"] }