Skip to content

Commit

Permalink
Fix warnings and error with release name
Browse files Browse the repository at this point in the history
  • Loading branch information
richiksc committed Dec 6, 2020
1 parent 09db92a commit 42af272
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ jobs:
ARM: aarch64-apple-darwin
steps:
- uses: actions/checkout@v2
- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install Rust beta
uses: actions-rs/toolchain@v1
with:
Expand Down Expand Up @@ -42,7 +44,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: badlogvis ${{ github.ref }}
name: badlogvis ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
files: |
Expand All @@ -55,6 +57,8 @@ jobs:
WIN: x86_64-pc-windows-gnu
steps:
- uses: actions/checkout@v2
- name: Set Release Version
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
- name: Install Rust beta
uses: actions-rs/toolchain@v1
with:
Expand All @@ -80,7 +84,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # This token is provided by Actions, you do not need to create your own token
with:
tag_name: ${{ github.ref }}
release_name: badlogvis ${{ github.ref }}
name: badlogvis ${{ env.RELEASE_VERSION }}
draft: false
prerelease: false
files: |
Expand Down
4 changes: 2 additions & 2 deletions src/graph.rs
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ impl Graph {

let (_, name_base) = util::split_name(&name);

let mut unit = format!("{}/{}", topic.unit, xaxis.unit);
let unit = format!("{}/{}", topic.unit, xaxis.unit);

let series = gen_series(topic.data.clone(), name_base).differentiate();

Expand All @@ -230,7 +230,7 @@ impl Graph {

let (_, name_base) = util::split_name(&name);

let mut unit = format!("{}*{}", topic.unit, xaxis.unit);
let unit = format!("{}*{}", topic.unit, xaxis.unit);

let (series, _total_sum) =
gen_series(topic.data.clone(), name_base).integrate();
Expand Down

0 comments on commit 42af272

Please sign in to comment.